Create the snippets content

This is a stub function either override getHtmlOutput() or override render()

@param \Zend_View_Abstract $view Just in case it is needed here
@return \MUtil_Html_HtmlInterface Something that can be rendered
485712
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $table = \MUtil_Html_TableElement::createArray($this->tableData, $this->tableTitle, $this->tableNested);
        $table->class = 'browser table';
        $div = \MUtil_Html::create()->div(array('class' => 'table-container'));
        $div[] = $table;
        return $div;
    }
821616
protected function renderView(array $view)
    {
        foreach ($view as $key => $element) {
            if (empty($element['value'])) {
                $view[$key] = '';
                continue;
            }

            if (!empty($element['html'])) {
                $attributes = $this->renderAttributes($element['html_attributes']);
                $prefix = '<' . $element['html_tag'] . ' ' . $attributes . '>';
                $suffix = '</' . $element['html_tag'] . '>';
                $value = htmlspecialchars($element['value'], ENT_QUOTES, 'UTF-8');
                $view[$key] = $prefix . $value . $suffix;
            } else {
                $view[$key] = strip_tags($element['value']);
            }
        }

        return $view;
    }
699610
public function getHtmlOutput(\Zend_View_Abstract $view)
    {

        // If there is data, populate
        if (!empty($this->formData)) {
            $this->form->populate($this->formData);
        }

        if ($this->mailer->bounceCheck()) {
            $this->addMessage($this->_('On this test system all mail will be delivered to the from address.'));
        }

        $this->beforeDisplay();

        $htmlDiv = \MUtil_Html::div();

        $htmlDiv->h3($this->getTitle());

        $htmlDiv[] = $this->form;

        return $htmlDiv;
    }
472863
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $tUtil = $this->util->getTokenData();

        $repeater = new \MUtil_Lazy_RepeatableByKeyValue($tUtil->getEveryStatus());
        $table    = new \MUtil_Html_TableElement();
        $table->class = 'compliance timeTable rightFloat table table-condensed';
        $table->setRepeater($repeater);

        $table->throw($this->_('Legend'));
        $cell = $table->td();
        $cell->class = array(
            'round',
            \MUtil_Lazy::method($tUtil, 'getStatusClass', $repeater->key)
            );
        $cell->append(\MUtil_Lazy::method($tUtil, 'getStatusIcon', $repeater->key));
        $table->td($repeater->value);

        return $table;
    }
1363517
static function render($view, array $data = []) {
        if (file_exists($view)) {
            if (is_array($data)) {
                foreach ($data as $_data => $_value) {
                    if (Config::get('security.anti_xss') && is_string($_value)) {
                        $_value = Text::entities($_value);
                    }
                    
                    $$_data = $_value;
                }
            } else {
                throw new \Lollipop\Exception\Runtime('Cannot define variable');
            }
        
            $file = new \SplFileInfo($view);
            $file_ext = strtolower($file->getExtension());
            
            
            ob_start();
            
            if ($file_ext == 'php' || $file_ext == 'phtml') {
                include($view);
            } else {
                readfile($view);
            }
            
            $output = ob_get_clean();
            
            return $output;
        }
        
        return false;
    }
1272830
public function render(string $view, array $templateVars = []): string
    {
        return $this->renderer->render($view, $templateVars);
    }
124862
public function render(string $view): string
	{
		if(empty($this->viewFactory))
		{
			throw new RuntimeException('A [ ViewFactory ] instance is required to render pagination views.');
		}

		return $this->viewFactory->create($view, $this->pagination())->render();
	}
1312144
public function compile(JsUtils $js=NULL, &$view=NULL) {
		$this->content=array();
		if(isset($this->default)){
			$default=new HtmlOption("", $this->default);
			$this->content[]=$default;
		}
		foreach ($this->options as $option){
			$this->content[]=$option;
		}
		return parent::compile($js, $view);
	}
1173001
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $seq = $this->getHtmlSequence();

        $seq->h2($this->_('Checks'));

        $seq->pInfo($this->_(
                'Check tokens for being answered or not, reruns survey and round event code on completed tokens and recalculates the start and end times of all tokens in tracks that have completed tokens.'
                ));
        $seq->pInfo($this->_(
                'Run this code when survey result fields, survey or round events or the event code has changed or after bulk changes in a survey source.'
                ));

        if ($this->itemDescription) {
            $seq->pInfo($this->itemDescription);
        }

        return $seq;
    }
749544
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        if ($this->tokenId) {
            if ($this->token->exists) {
                $htmlDiv   = \MUtil_Html::div();

                $htmlDiv->h3($this->getTitle());

                $table = parent::getHtmlOutput($view);
                $this->applyHtmlAttributes($table);
                $htmlDiv[] = $table;

                return $htmlDiv;

            } else {
                $this->addMessage(sprintf($this->_('Token %s not found.'), $this->tokenId));
            }

        } else {
            $this->addMessage($this->_('No token specified.'));
        }
    }
1181583
private function render(string $view, array $options = []): string
    {
        extract($options, EXTR_OVERWRITE);

        ob_start();
        require $this->getFilename($view);

        return ob_get_clean();
    }
56057
public function renderViewElement(View $view): ?string
    {
        if (empty($this->viewElement)) {
            return null;
        }

        return call_user_func_array([$view, 'element'], $this->viewElement);
    }
1117226
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $html = $this->getHtmlSequence();
        if ($this->trackName) {
            $html->h3(sprintf($this->_('Surveys in %s track'), $this->trackName));
        }

        $trackRepeater = $this->getRepeater($this->trackId);
        $table = $html->div(array('class' => 'table-container'))->table($trackRepeater, array('class' => 'browser table'));

        if ($link = $this->findMenuItem('project-tracks', 'questions')) {
            $table->tr()->onclick = array('location.href=\'', $link->toHRefAttribute($trackRepeater), '\';');
            $table->addColumn($link->toActionLinkLower($trackRepeater));
        }

        $surveyName[] = $trackRepeater->gsu_survey_name;
        $surveyName[] = \MUtil_Lazy::iif($trackRepeater->gro_icon_file, \MUtil_Html::create('img', array('src' => $trackRepeater->gro_icon_file, 'class' => 'icon')));

        $table->addColumn($surveyName,                           $this->_('Survey'));
        $table->addColumn($trackRepeater->gro_round_description, $this->_('Details'));
        $table->addColumn($trackRepeater->ggp_name,              $this->_('By'));
        $table->addColumn($trackRepeater->gsu_survey_description->call(array(__CLASS__, 'oneLine')),
                                                                 $this->_('Description'));
        return $html;
    }
138779
protected function generatePdf($view)
    {
        $view = $this->viewToString($view);
        $this->saveHtml($view);

        $command = implode(' ', [
            $this->getBinaryPath(),
            implode(' ', $this->commandLineOptions),
            $this->convertScript,
            $this->prefixHtmlPath($this->htmlPath),
            $this->pdfPath,
            implode(' ', $this->commandLineArguments),
        ]);

        $process = new Process($command, __DIR__);
        $process->setTimeout($this->timeout);
        $process->run();

        if ($errorOutput = $process->getErrorOutput()) {
            throw new RuntimeException('PhantomJS: ' . $errorOutput);
        }

        // Remove temporary html file
        @unlink($this->htmlPath);
    }
1229694
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $htmlDiv = \MUtil_Html::create()->div(array('class' => 'answer-container'));

        if ($this->tokenId) {
            if ($this->token->exists) {
                if ($this->showHeaders) {
                    $this->addHeaderInfo($htmlDiv);
                }

                $table = parent::getHtmlOutput($view);
                $table->setPivot(true, 2, 1);

                $this->applyHtmlAttributes($table);
                $this->class = false;
                $htmlDiv[] = $table;

            } else {
                $htmlDiv->ul(sprintf($this->_('Token %s not found.'), $this->tokenId), array('class' => 'errors'));
            }

        } else {
            $htmlDiv->ul($this->_('No token specified.'), array('class' => 'errors'));
        }

        if ($this->showButtons) {
            $this->addButtons($htmlDiv);
        }
        return $htmlDiv;
    }
413653
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $output = parent::getHtmlOutput($view);
        if ($this->result) {
            $output->h3($this->_('Result sets'));
            $output[] = $this->getResultTable($this->result);
        }
        return $output;
    }
645458
public function setView(\Zend_View_Interface $view = null) {
        /**
         * If the form is populated... and we have a tab set... select it
         */
        $tab = $this->getValue('tab');
        if ($tab > 0) {
            $this->selectTab($tab);
        }

        parent::setView($view);

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

        return $this;
    }