Gets content panel for the Debugbar

@return string
967423
public function getPanel()
    {
        $body = Zend_Controller_Front::getInstance()->getResponse()->getBody();
        $liberrors = libxml_use_internal_errors(true);
        $dom = new DOMDocument();
        $dom->loadHtml($body);
        libxml_use_internal_errors($liberrors);
        $panel = '<h4>HTML Information</h4>';
        $panel .= $this->_isXhtml();
        $linebreak = $this->getLinebreak();
        $panel .= $dom->getElementsByTagName('*')->length.' Tags in ' . round(strlen($body)/1024, 2).'K'.$linebreak
                . $dom->getElementsByTagName('link')->length.' Link Tags'.$linebreak
                . $dom->getElementsByTagName('script')->length.' Script Tags'.$linebreak
                . $dom->getElementsByTagName('img')->length.' Images'.$linebreak
                . '<form method="post" action="http://validator.w3.org/check"><p><input type="hidden" name="fragment" value="'.htmlentities($body).'"'.$this->getClosingBracket().'<input type="submit" value="Validate With W3C"'.$this->getClosingBracket().'</p></form>';
        return $panel;
    }
650326
protected function getContent()
    {
        $template = $this->option('template');
        $data = $this->form->data();

        if ($template) {
            $content = $this->getTemplate($template, [
                'data' => $data,
                'options' => $this->options
            ]);
        } else {
            $visitor = App::instance()->visitor();
            $content = '['.date('c').'] '.$visitor->ip().' '.$visitor->userAgent();

            foreach ($data as $key => $value) {
                if (is_array($value)) {
                    $value = implode(', ', array_filter($value, function ($i) {
                        return $i !== '';
                    }));
                }
                $content .= "\n{$key}: {$value}";
            }
            $content .= "\n\n";
        }

        return $content;
    }
237624
protected function getFileContent()
    {
        if (ends_with($this->file->getFilename(), '.blade.php')) {
            return $this->renderBlade();
        } elseif (ends_with($this->file->getFilename(), '.md')) {
            return $this->renderMarkdown();
        }

        return $this->file->getContents();
    }
1063708
public function getTopLevelContent() {
		$content = $this->blockInnerContents;
		$offset = strlen($this->openingDelimiter);

		foreach($this->getChildren() as $c) {
			$length = strlen($c->getOuterContents());
			$content = substr_replace($content, str_repeat("\n", $length), $c->getRelativeOffset()+$offset, $length);
		}

		return str_replace("\n", "", $content);
	}
1257406
protected function getContent()
    {
        $widget = (object) $this->widget->execute();
        $widget->cache_key = $this->widget->cacheKeys();

        return trim(preg_replace('/(\s|\r|\n)+</', '<',
            view($this->widget->template(), compact('widget'))->render()
        ));

        // Debug function if App has error:
        // `Cannot end a section without first starting one.`
        return view($this->widget->template(), compact('widget'));
    }
525607
public function getBufferedContents(): string {
	    if ($this->jhtmlJsonPayload === null) {
	        return $this->htmlView->getBufferedContents();
	    }
	    
	    return $this->jhtmlJsonPayload->getBufferedContents();
	}
497618
public function getContents()
    {
        if ($this->resource === null) {
            return '';
        }

        $result = substr($this->resource, $this->pointer);

        if ($result === false) {
            return '';
        }

        return $result;
    }
943392
public function getToolbarHtml()
    {
        $url = Url::toRoute([
            '/' . $this->id . '/default/toolbar',
            'tag' => $this->logTarget->tag,
        ]);
        return '<div id="yii-debug-toolbar" data-url="' . Html::encode($url) . '" style="display:none" class="yii-debug-toolbar-bottom"></div>';
    }
890399
public function getPanel()
	{

		$template = "..." . substr(self::$template, -self::$pathLen);
		$layout = "..." . substr(self::$layout, -self::$pathLen);

		$html = "<h1>Cms</h1>";
		$html .= "<div class='nette-inner'>";
		$html .= "<h2>Used template: <br><b title='" . self::$template . "'>" . $template . "</b></h2>";
		$html .= "<h2>Used layout: <br><b title='" . self::$layout . "'>" . $layout . "</b>";

		foreach (self::$sections as $section) {
			if (is_callable($section)) {
				$html .= $section();
			}
		}

		$html .= "</div>";

		return $html;
	}
465657
public function getPanel() {
		$app = \MvcCore\Application::GetInstance();
		$requestCode = \Tracy\Dumper::toHtml($app->GetRequest()->InitAll(), [
			\Tracy\Dumper::LIVE => TRUE,
			\Tracy\Dumper::COLLAPSE => 1,
			\Tracy\Dumper::DEPTH => 4,
		]);
		$responseCode = \Tracy\Dumper::toHtml($app->GetResponse(), [
			\Tracy\Dumper::LIVE => TRUE,
			\Tracy\Dumper::COLLAPSE => 1,
			\Tracy\Dumper::DEPTH => 2,
			\Tracy\Dumper::TRUNCATE => 40
		]);
		$routerCode = \Tracy\Dumper::toHtml($app->GetRouter(), [
			\Tracy\Dumper::LIVE => TRUE,
			\Tracy\Dumper::COLLAPSE => 1,
			\Tracy\Dumper::DEPTH => 5,
		]);
		$ctrlCode = \Tracy\Dumper::toHtml($app->GetController(), [
			\Tracy\Dumper::LIVE => TRUE,
			\Tracy\Dumper::COLLAPSE => 1,
			\Tracy\Dumper::COLLAPSE_COUNT => 1,
			\Tracy\Dumper::DEPTH => 3,
		]);
		$appCode = \Tracy\Dumper::toHtml($app, [
			\Tracy\Dumper::LIVE => TRUE,
			\Tracy\Dumper::COLLAPSE => 1,
			\Tracy\Dumper::DEPTH => 1,
		]);
		$result = '<h1>MvcCore</h1>'
			.'<style>#tracy-debug-panel-mvccore-panel pre.tracy-dump{display:block !important;}</style>'
			.$appCode
			.$requestCode
			.$responseCode
			.$routerCode
			.$ctrlCode;
		return $result;
	}
1374635
public function getContent()
    {
        $content = '';

        if ($this->_size > 0) {
            $content .= '\fs' . ($this->_size * 2) . ' ';
        }

        if ($this->_fontFamily && $this->_fontTable) {
            $fontIndex = $this->_fontTable->getFontIndex($this->_fontFamily);
            if ($fontIndex !== false) {
                $content .= '\f' . $fontIndex . ' ';
            }
        }

        if ($this->_color && $this->_colorTable) {
            $colorIndex = $this->_colorTable->getColorIndex($this->_color);
            if ($colorIndex !== false) {
                $content .= '\cf' . $colorIndex . ' ';
            }
        }

        if ($this->_backgroundColor && $this->_colorTable) {
            $colorIndex = $this->_colorTable->getColorIndex($this->_backgroundColor);
            if ($colorIndex !== false) {
                $content .= '\chcbpat' . $colorIndex . ' ';
            }
        }

        if ($this->_isBold) {
            $content .= '\b ';
        }
        if ($this->_isItalic) {
            $content .= '\i ';
        }
        if ($this->_isUnderlined) {
            $content .= '\ul ';
        }
        if ($this->_animation) {
            $content .= '\animtext' . $this->_animation;
        }
        if ($this->_isStriked) {
            $content .= '\strike ' . $this->_animation;
        }
        elseif ($this->_isDoubleStriked) {
            $content .= '\striked1 ' . $this->_animation;
        }

        return $content;
    }
9341
public function get_content() {
        global $CFG;

        require_once($CFG->dirroot.'/calendar/lib.php');

        if ($this->content !== null) {
            return $this->content;
        }

        $this->content = new stdClass;
        $this->content->text = '';
        $this->content->footer = '';

        $courseid = $this->page->course->id;
        $categoryid = ($this->page->context->contextlevel === CONTEXT_COURSECAT && !empty($this->page->category)) ?
            $this->page->category->id : null;
        $calendar = \calendar_information::create(time(), $courseid, $categoryid);
        list($data, $template) = calendar_get_view($calendar, 'mini', isloggedin(), isloggedin());

        $renderer = $this->page->get_renderer('core_calendar');
        $this->content->text .= $renderer->render_from_template($template, $data);

        if ($this->page->course->id != SITEID) {
            $this->content->text .= $renderer->event_filter();
        }

        return $this->content;
    }
1351529
protected function getControllerContent()
    {
        if (!$stub = $this->getControllerStub()) {
            return '';
        }

        $sectionSegmentsStudly = $this->sectionSegmentsStudly;

        $name      = array_pop($sectionSegmentsStudly).'Controller';
        $namespace = $this->appNs.'\Http\Controllers';
        $requestNs = $this->appNs.'\Http\Requests\\'.implode('\\', $this->sectionSegmentsStudly);
        $listingClass = $this->appNs.'\Listings\\'.implode('\\', $this->sectionSegmentsStudly).'Listing';

        if ($sectionSegmentsStudly) {
            $namespace .= '\\'.implode('\\', $sectionSegmentsStudly);
        }

        return strtr($stub, array_merge($this->getCommonReplacements(), [
            '{{namespace}}'        => $namespace,
            '{{name}}'             => $name,
            '{{requestNamespace}}' => $requestNs,
            '{{listingClass}}'     => $listingClass,
        ]));
    }
822316
public function toolModalContentAction()
    {
        $id       = (int)$this->params()->fromRoute('id', $this->params()->fromQuery('id', ''));
        $melisKey = $this->params()->fromRoute('melisKey', '');
        $title    = $this->tool()->getTranslation('tr_melis_cms_prospects_theme_items_edit_title');
        $data     = array();
        $themeItemId  = (int)$this->params()->fromQuery('itemId', null);

        $code = $this->params()->fromQuery('code', null);
        $form = $this->getThemeItemForm();
        
        if($themeItemId)
        $data = $this->themeItemTable()->getItemById($themeItemId)->toArray();

        $langTable = $this->getServiceLocator()->get('MelisEngineTableCmsLang');
        $languages = $langTable->fetchAll()->toArray();

        $tmpData = array();

        $view            = new ViewModel();
        $view->melisKey  = $melisKey;
        $view->title     = $title;
        $view->form      = $form;
        $view->data      = $data;
        $view->languages = $languages;
        $view->itemId    = $themeItemId;
        return $view;
    }
458254
public function toolContentAction()
    {
        $translator = $this->getServiceLocator()->get('translator');

        $container = new Container('meliscore');
        $locale    = $container['melis-lang-locale'];

        $columns            = $this->tool()->getColumns();
        $columns['actions'] = array('text' => $translator->translate('tr_meliscore_global_action'), 'width' => '20%');

        $theme   = $this->getTheme();
        $themeId = isset($theme->pros_theme_id) ? (int) $theme->pros_theme_id : null;
        $view    = new ViewModel();
        $view->melisKey               = $this->getMelisKey();
        $view->tableColumns           = $columns;
        $view->getToolDataTableConfig = $this->tool()->getDataTableConfiguration('#' . $themeId . '_tableToolProspectsThemeItems', true, false, array('order' => '[[ 0, "desc" ]]'));
        $view->theme = $theme;

        return $view;
    }
1372546
public function getContents()
    {
        ob_start();

        $callback = $this->hasContext() ? $this->getClosureForContextRender() : $this->callContextRender();

        call_user_func($callback, $this->getFilename(), $this->getData()->toArray());

        return ltrim(ob_get_clean());

    }
272574
public function getPanel()
	{
		ob_start();
		
		if (!$this->count) {
			return;
		}

		$count = $this->count;
		$queries = $this->queries;
		require __DIR__ . '/templates/ConnectionPanel.panel.phtml';
		return ob_get_clean();
	}