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
160131
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $div = \MUtil_Html::create('div');

        if ($this->surveyId && $this->data) {
            $div->h3(sprintf($this->_('Questions in survey %s'), $this->survey->getName()));
            $div->append(parent::getHtmlOutput($view));
        } else {
            $this->addMessage($this->_('Survey not found'));
            if ($this->surveyId) {
                $div->pInfo(sprintf($this->_('Survey %s does not exist.'), $this->surveyId));
            } else {
                $div->pInfo($this->_('Survey not specified.'));
            }
        }
        $item = $this->menu->getCurrentParent();
        if ($item) {
            $div->append($item->toActionLink($this->_('Cancel'), $this->request));
        }

        return $div;
    }
1276721
public function render(string $view, array $params = []): string
    {
        return $this->make($view, $params)->render();
    }
353732
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $html = $this->getHtmlSequence();

        $html->h3($this->_('System is in maintenance mode'));

        if ($this->token instanceof \Gems_Tracker_Token) {
            if ($this->token->isCompleted()) {
                if ($this->token->getNextUnansweredToken()) {
                    $html->pInfo()->strong($this->_('Your answers were processed correctly.'));
                    $html->pInfo($this->_(
                            'Unfortunately this system has just entered maintenance mode so you cannot continue.'
                            ));
                    $html->pInfo($this->_(
                            'Please try to continue at a later moment. Reuse your link or refresh this page.'
                            ));
                } else {
                    $html->pInfo($this->_('This system has just entered maintenance mode.'));
                    $html->pInfo($this->_(
                            'All your surveys have been processed correctly and there are no further questions.'
                            ));
                }
                return $html;
            }
        }

        $html->pInfo($this->_('Unfortunately you cannot answer surveys while the system is in maintenance mode.'));
        $html->pInfo($this->_('Please try again later.'));

        return $html;
    }
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;
    }
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;
    }
626831
public function render($view, array $data = [], $inliner = null)
    {
        $this->view->flushFinderCache();

        $contents = $this->view->replaceNamespace(
            'mail', $this->htmlComponentPaths()
        )->make($view, $data)->render();

        return new HtmlString(($inliner ?: new CssToInlineStyles)->convert(
            $contents, $this->view->make('mail::themes.'.$this->theme)->render()
        ));
    }
891883
protected function render($view)
    {
        $view = $this->getViewPath().$view.'.php';
        if (empty($this->attributes) === true) {
            $this->template->setAttributes(
                $this->attributes = $this->getAttributes()
            );
        }

        return $this->template->render($view);
    }
256708
public function render($view = null, $data = array())
    {
        if (is_null($view)) {
            $view = static::$defaultSimpleView;
        }

        $data = array_merge($data, array(
            'paginator' => $this,
        ));

        return new HtmlString(
            static::viewFactory()->make($view, $data)->render()
        );
    }
866313
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        if ($this->roundId) {
            $htmlDiv   = \MUtil_Html::div();

            if ($this->showTitle) {
                $htmlDiv->h3(sprintf($this->_('%s round'), $this->trackEngine->getName()));
            }

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

            // Make sure deactivated rounds are show as deleted
            foreach ($table->tbody() as $tr) {
                $skip = true;
                foreach ($tr as $td) {
                    if ($skip) {
                        $skip = false;
                    } else {
                        $td->appendAttrib('class', $table->getRepeater()->row_class);
                    }
                }
            }

            if ($this->showMenu) {
                $table->tfrow($this->getMenuList(), array('class' => 'centerAlign'));
            }

            $htmlDiv[] = $table;

            return $htmlDiv;

        } else {
            $this->addMessage($this->_('No round specified.'));
        }
    }
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);
	}
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;
    }
701995
public function render(
        Zend_Db_Table_Row_Abstract $snippet, $partial = false, array $params = array()
    ) {
        $module = $partial ? 'default' : 'g';
        $partial = $partial ?: 'partials/snippet.phtml';
        $params['snippet'] = $snippet;

        return $this->view->partial($partial, $module, $params);
    }
769286
public function getHtmlOutput(\Zend_View_Abstract $view)
    {

        if ($script = $this->getAjaxEventScript()) {
            $baseUrl = \GemsEscort::getInstance()->basepath->getBasePath();
            \MUtil_JQuery::enableView($view);
            $view->headScript()->appendFile($baseUrl . '/gems/js/jquery.getSelectOptions.js');
            $view->inlineScript()->appendScript($script);
        }

        return parent::getHtmlOutput($view);
    }
926330
public static function render($view, array $data = array())
    {
        if (self::$force || App::state() > 2) {
            \UtilsSandboxLoader('application/View/' . strtr($view, '.', '/') . '.php', self::$shared + $data);

            return $data = null;
        }

        return array_push(self::$views, array(strtr($view, '.', '/'), $data)) - 1;
    }
438941
public function renderPage($view, $layout = null)
    {
        $event = new PageMenuContextualEvent($view);

        //Set currentView and dispatch victoire.on_render_page event with this currentView
        $pageRenderEvent = new PageRenderEvent($view);
        $this->eventDispatcher->dispatch('victoire.on_render_page', $pageRenderEvent);
        $this->currentViewHelper->setCurrentView($view);

        //Build WidgetMap
        $this->widgetMapBuilder->build($view, true);

        //Populate widgets with their data
        $this->widgetDataWarmer->warm($this->entityManager, $view);

        //Dispatch contextual event regarding page type
        if (in_array($view->getType(), ['business_page', 'virtual_business_page'])) {
            //Dispatch also an event with the Business entity name
            $eventName = 'victoire_core.page_menu.contextual';
            if (!$view->getId()) {
                $eventName = 'victoire_core.business_template_menu.contextual';
                $event = new PageMenuContextualEvent($view->getTemplate());
            }
            $this->eventDispatcher->dispatch($eventName, $event);
            $type = $view->getBusinessEntityId();
        } else {
            $type = $view->getType();
        }

        $eventName = 'victoire_core.'.$type.'_menu.contextual';
        $this->eventDispatcher->dispatch($eventName, $event);

        if (null === $layout) {
            //Determine which layout to use
            $layout = $this->guessBestLayoutForView($view);
        }
        $globalConfig = $this->entityManager->getRepository(GlobalConfig::class)->findLast() ?: new GlobalConfig();

        //Create the response
        $response = $this->container->get('templating')->renderResponse('VictoireCoreBundle:Layout:'.$layout.'.html.twig', [
            'globalConfig'                    => $globalConfig,
            'victoire_i18n_available_locales' => $this->availableLocales,
            'victoire_twig_responsive'        => $this->twigResponsive,
            'view'                            => $view,
        ]);

        return $response;
    }
531141
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $table = parent::getHtmlOutput($view);

        $table->class = $this->class;
        $this->applyHtmlAttributes($table);
        $this->class = false;
        $tableContainer = \MUtil_Html::create()->div(array('class' => 'table-container'), $table);

        return $tableContainer;
    }
1160171
public function renderInput($view)
    {
        // First check if there isn't a model view.

        $viewName = 'ignicms::admin.formElements.'.$view;

        if ($this->model instanceof AdminModel && $identifier = $this->model->getIdentifier()) {
            // First check if there is a rewrite on specific field type
            $field = str_slug($this->field);
            if (\View::exists('resources.'.$identifier.'.formElements.'.$field)) {
                $viewName = 'resources.'.$identifier.'.formElements.'.$field;
            } elseif (\View::exists('resources.'.$identifier.'.formElements.'.$view)) {
                $viewName = 'resources.'.$identifier.'.formElements.'.$view;
            }
        }

        return view($viewName, [
            'record' => $this->model,
            'fieldName' => $this->field,
            'elementName' => $this->elementName,
            'options' => $this->options,
            'sourceModel' => $this->sourceModel,
        ]);
    }