Return a string of alert display HTML for a set display view.

@param string $view
@param string $viewPath

@return string
504198
public function display($viewPath = null, $view = null)
	{
		if (!$viewPath) {
			$viewPath = $this->viewPath;
		}

		if (!$view) {
			$view = $this->view;
		}

		return (new AlertDisplay($this, $viewPath, $view))->display();
	}
648544
private function resolveFullViewPath($viewPath)
    {
        if (strlen($this->getPartialsDir()) > 0 && strpos($viewPath, $this->getPartialsDir()) === 0) {
            return $this->resolvePartialPath($viewPath);
        }
        if (strpos($viewPath, $this->getLayoutsDir()) === 0) {
            return $this->resolveLayoutPath($viewPath);
        }

        return $this->resolveViewPath($viewPath);
    }
564672
protected function findDisplayViewFile()
    {
        foreach($this->getDirectoryIterator() as $file) {
            $name = $file->getFilename();

            if ($this->isDisplayViewFile($name)) {
                return $file->getPathname();
            }
        }

        throw new AlertDisplayViewException('Could not locate the view file.');
    }
959935
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $model = $this->getModel();
        if ($this->trackUsage) {
            $model->trackUsage();
        }

        $table = $this->getShowTable($model);
        $table->setRepeater($this->getRepeater($model));

        return $table;
    }
989313
public function showFlash($view)
    {
        if (!$this->session->has('notify')) {
            return '';
        }

        $args = ['view' => $view] + $this->session->get('notify');

        return call_user_func_array([$this, 'show'], $args);
    }
631302
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $html = $this->getHtmlSequence();

        $html->h3($this->_('Choose an organization'));

        $url[$this->request->getControllerKey()] = $this->request->getControllerName();
        $url[$this->request->getActionKey()]     = $this->action;

        if ($this->info) {
            $html->pInfo($this->info);
        }

        foreach ($this->orgs as $orgId => $name) {
            $url['org'] = $orgId;

            $html->pInfo()->actionLink($url, $name)->appendAttrib('class', 'larger');
        }

        return $html;
    }
72882
public function render($view): string
    {
        if (!($view instanceof IView)) {
            return $view;
        }

        $path = $this->resolveViewName($view->viewName());

        if ($path === null) {
            return '';
        }

        $engine = $this->resolver->resolve($path);

        return $engine->build($path, $view->viewVariables());
    }
555766
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $html = $this->getHtmlSequence();

        if (! $this->trackData) {
            $html->h2($this->_('Unknown track'));
            $this->addMessage(sprintf($this->_('Unknown track id %s'), $this->trackId));
            return $html;
        }

        if ($this->showHeader) {
            $html->h2(sprintf($this->_('%s track'), $this->trackData['gtr_track_name']));
        }

        if (isset($this->trackData['gtr_date_until']) && $this->trackData['gtr_date_until']) {
            $html->pInfo(
                sprintf(
                    $this->_('This track can be assigned from %s until %s.'),
                    \MUtil_Date::format($this->trackData['gtr_date_start'], \Zend_Date::DATE_LONG),
                    \MUtil_Date::format($this->trackData['gtr_date_until'], \Zend_Date::DATE_LONG))
                );

        } else {
            $html->pInfo(
                sprintf(
                    $this->_('This track can be assigned since %s.'),
                    \MUtil_Date::format($this->trackData['gtr_date_start'], \Zend_Date::DATE_LONG))
                );
        }

        return $html;
    }
1272830
public function render(string $view, array $templateVars = []): string
    {
        return $this->renderer->render($view, $templateVars);
    }
866946
protected function populateView($view)
    {
        $view = $this->initViewVars($view);
        $view = $this->initViewContentBlocks($view);

        return $view;
    }
261287
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $this->html = $this->getHtmlSequence();

        $versions = $this->loader->getVersions();
        $this->html->h2(sprintf(
                'Upgrade compatibility report for GemsTracker %s, build %d',
                $versions->getGemsVersion(),
                $versions->getBuild()
                ));

        $this->addEscortReport();

        $this->addProjectIniReport();

        $this->addFileReports();

        return $this->html;
    }
1241594
public static function formatter($view, $field)
    {
        switch ($field->viewModeSettings['formatter']) {
            case 'link':
                $out = $view->element('Field.FileField/display_link', compact('field'));
                break;
            case 'table':
                $out = $view->element('Field.FileField/display_table', compact('field'));
                break;
            case 'url':
            default:
                $out = $view->element('Field.FileField/display_url', compact('field'));
                break;
        }

        return $out;
    }
1243605
public function getJavascripts($view)
    {
        $result = '';
        foreach ($view->javascriptMedia as $js) {
            $result .= $js->getBrowserCode();
        }
        $view->javascriptMedia = array();
        return $result;
    }
1022343
public function displayView($view = '', $suffix = '')
    {
        $viewTag = $view . ($suffix ?  '#' . $suffix : '');
        if (!array_key_exists($viewTag, $this->_displayViewCache)) {
            $this->_displayViewCache[$viewTag] = '';
            $viewRootPath = 'themes.' . PageBuilder::getData('theme') . '.blocks.';
            $viewFiles = $view ? array_merge([$view], $this->_displayViewFiles) : $this->_displayViewFiles;
            foreach ($this->_displayViewDirs as $viewDir) {
                foreach ($viewFiles as $viewFile) {
                    $this->_displayViewLog[] = $viewRootPath . $viewDir . '.' . $viewFile . $suffix;
                    if (View::exists(end($this->_displayViewLog))) {
                        $this->_displayViewCache[$viewTag] = end($this->_displayViewLog);
                        break 2;
                    }
                }
            }
        }
        return $this->_displayViewCache[$viewTag];
    }
235811
public function viewModeSettings(View $view, $viewMode)
    {
        $handler = $this->get('handler');
        if (class_exists($handler)) {
            $handler = new $handler();

            return $handler->viewModeSettings($this, $view, $viewMode);
        }

        return '';
    }
1063002
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $bridge = $this->model->getBridgeFor('itemTable', array('class' => 'displayer table table-condensed'));
        $bridge->setRepeater($this->repeater);
        $bridge->setColumnCount(2); // May be overruled

        $this->addTableCells($bridge);

        if ($this->model->has('row_class')) {
            // Make sure deactivated rounds are show as deleted
            foreach ($bridge->getTable()->tbody() as $tr) {
                foreach ($tr as $td) {
                    if ('td' === $td->tagName) {
                        $td->appendAttrib('class', $bridge->row_class);
                    }
                }
            }
        }

        $this->addButtons($bridge);
        $this->addOnClick($bridge);

        $container = \MUtil_Html::create()->div(array('class' => 'table-container'));
        $container[] = $bridge->getTable();
        return $container;
    }
1113027
private function compile_phptag( $view )
	{
		// I hate this workaround
		$that = $this;

		return preg_replace_callback('/\{\%(.*?)\%\}/s', function( $match ) use( $that )
		{ 
			$expression = trim( $match[1] );

			// repair it 
			$expression = $that->repair_expression( $expression );

			return '<?php '.$expression.' ?>'; 
		}, $view );
	}