Returns the code for the panel itself

@return string
15615
public function getPanel() {
		$lang_code = $this->translator->getActiveLanguageAndPlural()->getLanguage()->getIso639_1();

		ob_start();
		require __DIR__ . '/Templates/panel.phtml';

		return ob_get_clean();
	}
210926
public function getFormattedString()
    {
        $string = (string) $this->code;

        if (null !== $this->message) {
            $string = $string . ' ' . $this->message;
        }

        return $string;
    }
1265715
protected function buildInlineCode() {
        $result = '';
        if (!$this->events->isEmpty()) {
            $variableName = $this->getTriggeredCustomEventsVariableName();

            $result = 'while (' . $variableName . '.count > 0) {' . PHP_EOL
                . '    switch (' . $variableName . '[0]) {' . PHP_EOL;

            foreach ($this->mergeEvents($this->events) as $name => $code) {
                $result .= '        case "' . $name . '": {' . PHP_EOL
                    . $code
                    . '        }' . PHP_EOL;
            }

            $result .= '    }' . PHP_EOL
                . '    declare Temp = ' . $variableName . '.removekey(0);' . PHP_EOL
                . '}' . PHP_EOL;
        }
        return $result;
    }
638817
public function getPersistCode()
	{
		$this->persist_code = $this->getRandomString();

		// Our code got hashed
		$persistCode = $this->persist_code;

		$this->save();

		return $persistCode;
	}
365873
public function getCodeAsString()
    {
        switch ($this->getCode()) {
            case self::BURIED:
                return 'Buried';
                break;

            case self::NOT_FOUND:
                return 'Not Found';
                break;

            case self::EXPECTED_CRLF:
                return 'Expected CRLF';
                break;

            case self::JOB_TOO_BIG:
                return 'Job Too Big';
                break;

            case self::DEADLINE_SOON:
                return 'Deadline Soon';
                break;

            case self::TIMED_OUT:
                return 'Timed Out';
                break;

            case self::TUBE_NAME_TOO_LONG:
                return 'Tube Name Too Long';
                break;

            case self::NOT_IGNORED:
                return 'Not Ignored';
                break;

            case self::OUT_OF_MEMORY:
                return 'Out of Memory';
                break;

            case self::INTERNAL_ERROR:
                return 'Internal Error';
                break;

            case self::BAD_FORMAT:
                return 'Bad Format';
                break;

            case self::UNKNOWN_COMMAND:
                return 'Unknown Command';
                break;

            case self::SERVER_OFFLINE:
                return 'Server Offline';
                break;

            case self::SERVER_READ:
                return 'Server Read Error';
                break;

            case self::SERVER_WRITE:
                return 'Server Write Error';
                break;

            default:
                return 'Unknown';
                break;
        }
    }
507262
public function getVerifyCode()
    {
        $session = Yii::$app->getSession();
        $session->open();
        $name = $this->getSessionKey();
        return $session[$name];
    }
411336
public function getPanel()
    {
        $params = [
            'class'           => get_class($this->locale),
            'locales'         => $this->locale->getLocales(),
            'localeIdDefault' => $this->locale->getIdDefault(),
            'localeId'        => $this->locale->getId(),
        ];
        $latte = new Engine;
        return $latte->renderToString(__DIR__ . '/PanelTemplate.latte', $params);
    }
887165
public function buildCode()
    {
        $res = '';
        foreach ($this->styles as $href => $val) {
            $res .= '<link href="' . $href . '" rel="stylesheet" type="text/css" />' . "\r\n";
        }

        return $res;
    }
1105992
public function getCode()
    {
        $locator = new TemplateLocator(new FileLocator($this->getTemplateDirs()));
        $templateNameParser = new TemplateNameParser();
        $loader = new FilesystemLoader($locator, $templateNameParser);
        $twig = new \Twig_Environment(
            $loader,
            array(
                'autoescape' => false,
                'strict_variables' => true,
                'debug' => true,
                'cache' => $this->getGenerator()->getTempDir(),
            )
        );

        $this->addTwigExtensions($twig, $loader);
        $this->addTwigFilters($twig);
        $template = $twig->loadTemplate($this->getTemplateName());

        $variables = $this->getVariables();
        $variables['builder'] = $this;

        return $template->render($variables);
    }
659736
public function getScript()
    {
        $di = jaxon()->di();
        $code = '';
        foreach(array_keys($this->aFunctions) as $sName)
        {
            $xFunction = $di->get($sName);
            $code .= $xFunction->getScript();
        }
        return $code;
    }
409492
public function getCode()
    {
        return join(' ', array(
            $this->getResponseCode(),
            $this->getResponseText(),
            '(' . $this->getHttpResponseCode(),
            $this->getHttpResponseCodeText() . ')',
        ));
    }
425267
private function header()
    {
        $fields = collect($this->entity->fields)->unique('type')->all();
        $codeArray = [];

        foreach ($fields as $name => $options) {
            $type = ucwords($options['type']);
            $className = 'Jaimeeee\\Panel\\Fields\\'.$type.'\\'.$type.'Field';

            if (method_exists($className, 'header')) {
                $codeArray[] = '  '.$className::header();
            }
        }

        return implode(chr(10), $codeArray);
    }
291691
public function getPanel()
    {
        $linebreak = $this->getLinebreak();
        $included = $this->_getIncludedFiles();
        $html = '<h4>' . count($included).' files included worth ';
        $size = 0;
        foreach ($included as $file) {
            $size += filesize($file);
        }
        $html .= round($size/1024, 1).'K</h4>';

        // $html .= 'Basepath: ' . $this->_basePath .$linebreak;

        $libraryFiles = array();
        foreach ($this->_library as $key => $value) {
            if ('' != $value) {
                $libraryFiles[$key] = '<h4>' . $value . ' Files</h4>';
            }
        }

        $html .= '<h4>Application Files</h4>';
        foreach ($included as $file) {
            $file = str_replace($this->_basePath, '', $file);
            $filePaths = explode(DIRECTORY_SEPARATOR, $file);
            $inUserLib = false;
            foreach ($this->_library as $key => $library) {
                if ('' != $library && in_array($library, $filePaths)) {
                    $libraryFiles[$key] .= $file . $linebreak;
                    $inUserLib = TRUE;
                }
            }
            if (!$inUserLib) {
                $html .= $file .$linebreak;
            }
        }

        $html .= implode('', $libraryFiles);

        return $html;
    }
1007792
private function _getCode(){
        $code = null;
        //try{
            $text = $this->text;
            $textColor = new CINColor($this->foregroundColor);
            $backgroudColor = new CINColor($this->backgroundColor);
            $fontPath = isset($this->font) ? $this->font : $this->_getDefaultFont();

            $font = new CINFontFile($fontPath, (is_int($this->fontSize)) ? $this->fontSize : 18);

            $codeClass = "\\CodeItNow\\BarcodeBundle\\Generator\\".$this->barcodeType;
            $code = new $codeClass();
            if($this->scale){
                $code->setScale($this->scale); // Resolution
            }
            if($this->thickness){
                $code->setThickness($this->thickness); // Thickness
            }
            if($this->label !== FALSE){
                $code->setLabel($this->label);
            }
            if($this->noLengthLimit){
                $code->setNoLengthLimit($this->noLengthLimit);
            }
            if($this->allowsUnknownIdentifier){
                $code->setAllowsUnknownIdentifier($this->allowsUnknownIdentifier);
            }
            $code->setForegroundColor($textColor); // Color of bars
            $code->setBackgroundColor($backgroudColor); // Color of spaces
            $code->setFont($font); // Font (or 0)
            $code->parse($text); // Text
        //} catch (\Exception $ex) {
            
        //}
        return $code;
    }
1022089
protected function getJsInitializationCode()
    {
        $js = '';

        if (($this->initialization & self::INITIALIZE_CONSTRUCTOR) === self::INITIALIZE_CONSTRUCTOR) {
            $js .= sprintf("var %s = new %s();\n", $this->variableName, $this->javascriptClass);
        }

        if (($this->initialization & self::INITIALIZE_CONTROLS) === self::INITIALIZE_CONTROLS) {
            $js .= $this->getJsControlsDefinitionCode($this->variableName);
        }

        if ($this->ajaxHandlerClass) {
            $js .= sprintf("%s.ajaxHandler = new %s(%s);\n", $this->variableName, $this->ajaxHandlerClass, $this->variableName);
            if ($this->ajaxHandlerBindToXHR) {
                $js .= sprintf("%s.ajaxHandler.bindToXHR();\n", $this->variableName);
            } elseif ($this->ajaxHandlerBindToJquery) {
                $js .= sprintf("if (jQuery) %s.ajaxHandler.bindToJquery(jQuery);\n", $this->variableName);
            }
        }

        if ($this->openHandlerUrl !== null) {
            $js .= sprintf("%s.setOpenHandler(new %s(%s));\n", $this->variableName,
                $this->openHandlerClass,
                json_encode(array("url" => $this->openHandlerUrl)));
        }

        return $js;
    }
799107
public function getFormatCode()
	{
		if ($this->_isSupervisor) {
			return $this->getSharedComponent()->getFormatCode();
		}
		if ($this->_builtInFormatCode !== false)
		{
			return self::builtInFormatCode($this->_builtInFormatCode);
		}
		return $this->_formatCode;
	}
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;
	}