Sets some variables needed by the _updaterManage.twig template.

@param View $view
772686
private function setUpdaterManageVars($view)
    {
        $view->isGeoIp2Available = $this->isGeoIp2Enabled();

        if ($this->isGeoIp2Enabled()) {
            // Get GeoIPLegacy Update information to show them
            $urls = GeoIPAutoUpdater::getConfiguredUrls();

            $view->geoIPLegacyLocUrl = $urls['loc'];
            $view->geoIPLegacyIspUrl = $urls['isp'];
            $view->geoIPLegacyOrgUrl = $urls['org'];
            $view->geoIPLegacyUpdatePeriod = GeoIPAutoUpdater::getSchedulePeriod();

            $urls = GeoIP2AutoUpdater::getConfiguredUrls();

            $view->geoIPLocUrl = $urls['loc'];
            $view->geoIPIspUrl = $urls['isp'];
            $view->geoIPUpdatePeriod = GeoIP2AutoUpdater::getSchedulePeriod();

            $view->geoLiteUrl = GeoIp2::GEO_LITE_URL;
            $view->geoLiteFilename = 'GeoLite2-City.mmdb';
            $view->nextRunTime = GeoIP2AutoUpdater::getNextRunTime();

            $lastRunTime = GeoIP2AutoUpdater::getLastRunTime();
        } else {
            $urls = GeoIPAutoUpdater::getConfiguredUrls();

            $view->geoIPLocUrl = $urls['loc'];
            $view->geoIPIspUrl = $urls['isp'];
            $view->geoIPOrgUrl = $urls['org'];
            $view->geoIPUpdatePeriod = GeoIPAutoUpdater::getSchedulePeriod();

            $view->geoLiteUrl = GeoIp::GEO_LITE_URL;
            $view->geoLiteFilename = 'GeoLiteCity.dat';
            $view->nextRunTime = GeoIPAutoUpdater::getNextRunTime();

            $lastRunTime = GeoIPAutoUpdater::getLastRunTime();
        }

        if ($lastRunTime !== false) {
            $view->lastTimeUpdaterRun = '<strong>' . $lastRunTime->toString() . '</strong>';
        }
   }
90918
public function compose(View $view)
    {

        $view->with('user', Auth::user());
        $view->with('user_characters', $this->getUserGroupCharacters(auth()->user()->group));
    }
927144
public function compose(View $view)
    {
        $componentGroups = $this->getVisibleGroupedComponents();
        $ungroupedComponents = Component::ungrouped()->orderBy('status', 'desc')->get();

        $view->withComponentGroups($componentGroups)
            ->withUngroupedComponents($ungroupedComponents);
    }
1122325
public function setViewPath($view)
    {
        $this->layout->layout = $this->viewPath->setUp($this->layout->layout, $view);

        return $this;
    }
851953
public function initializeView(ViewInterface $view)
    {
        $sitePackageKey = $this->getDefaultSitePackageKey();
        $this->view->assign('defaultSitePackageKey', $sitePackageKey);
    }
1350950
public function addView(View $view)
    {
        if ($this->hasView($view->getName())) {
            throw SchemaException::schemaViewAlreadyExists($this->getName(), $view->getName());
        }

        $this->views[$view->getName()] = $view;
    }
237675
public function setViewParams($view)
    {
        
        foreach ($this->url as $url) {
            if(isset($view->params['urls']) && is_array($view->params['urls'])){
                $view->params['urls'] = $this->MenuMerge($view->params['urls'],$url);
            }else{
                $view->params['urls'] = $url;
            }
            
        }
        
        if($module = $this->getModule()){
            $view->params['urls'][$module]['active']=true;
        }
    }
326850
public function setView($view)
    {

        if (class_exists($view)) {
            //if we already have a default view
            $values = [];

            //grab all its parameters and store in parameters
            if (isset($this->view) && $this->view instanceof View) {

                $values = $this->view->getDataArray();
                $layout = $this->view->getLayout();

                //Load the newView;
                $this->view = $this->loadView($view, $values);

                if (!empty($layout)) {
                    $this->view->setLayout($layout);
                }
            }

            return $this;

        } else if (is_string($view)) {

            $this->response->addContent($view); //so that $this->view("Hi There");  will output Hi There;

            return $this;

        }

        return false; //no view set;
    }
862649
public function dropAndCreateView(View $view)
    {
        $this->tryMethod('dropView', $view->getQuotedName($this->_platform));
        $this->createView($view);
    }
160870
public function composeWithModel(View $view)
    {
        $key = $this->getModelRouteKey();
        $model = $this->findModelByRouteKey($key);

        $view->with('model', $model);
    }
202084
protected function initializeView(ViewInterface $view)
    {
        $view->assign('contentObjectData', $this->configurationManager->getContentObject()->data);
        parent::initializeView($view);
    }
570416
private function load($view) {

		$data = $this->data($view);

		if(file_exists($data['file'])) {

			extract($data['var']);

			require $data['file'];
		}
	}
965931
protected function configureView($view)
    {
        $this->setBasicVariablesNoneAdminView($view);

        $view->linkTitle = Piwik::getRandomTitle();

        // crsf token: don't trust the submitted value; generate/fetch it from session data
        $view->nonce = Nonce::getNonce('Login.login');
    }
997950
public function composeWithAllRouteNames(View $view)
    {
        $routes = $this->getAllRouteNames();

        foreach ($routes as $action => $routeName) {
            $view->with("{$action}Route", $routeName);
        }
    }
794949
public function addView(View $view)
    {
        $name = $view->getName();
        $path = $view->getPath();

        if (!is_object($path)) {
            if ($path) {
                $path = ltrim(str_replace(base_path(), '', realpath($path)), '/');
            }

            if (substr($path, -10) == '.blade.php') {
                $type = 'blade';
            } else {
                $type = pathinfo($path, PATHINFO_EXTENSION);
            }
        } else {
            $type = get_class($view);
            $path = '';
        }

        if (!$this->collect_data) {
            $params = array_keys($view->getData());
        } else {
            $data = [];
            foreach ($view->getData() as $key => $value) {
                $data[$key] = $this->exporter->exportValue($value);
            }
            $params = $data;
        }

        $this->templates[] = [
            'name'        => $path ? sprintf('%s (%s)', $name, $path) : $name,
            'param_count' => count($params),
            'params'      => $params,
            'type'        => $type,
        ];
    }
946561
public function setView($name, $layout=null)
	{
		$config = array(
			'name' => $name
		);
		if ($layout)
		{
			$config['layout'] = $layout;
		}
		$this->view = new View($config);

		// Set some commonly used vars
		$this->view->option     = $this->_option;
		$this->view->task       = $name;
		$this->view->controller = $this->_controller;
	}
1282181
public function onAdd(ViewInterface $view)
    {
        if (!$view instanceof TwigView) {
            throw new \InvalidArgumentException("This plugin only works with a Twig view");
        }
        
        foreach ($this->extensions as $class) {
            if (class_exists($class)) {
                $view->getTwig()->addExtension(new $class());
            }
        }
    }