/** * @return string */ public function getContent() { if (is_array($this->Content)) { if ($this->Filter) { $this->Template->setVariable('Hash', $this->getHash()); if (!is_numeric($this->Filter)) { $this->Filter = 50; } $this->Template->setVariable('FilterSize', $this->Filter); if (isset($this->getGlobal()->POST['PanelSearch-' . sha1($this->Title)])) { $Value = $this->getGlobal()->POST['PanelSearch-' . sha1($this->Title)]; $this->Template->setVariable('FilterValue', "'" . $Value . "'"); } else { $Value = ''; $this->Template->setVariable('FilterValue', ''); } array_unshift($this->Content, '<input type="text" class="form-control search" name="PanelSearch-' . sha1($this->Title) . '" placeholder="Filtern" value="' . $Value . '">' . ($this->Filter < count($this->Content) ? new PullRight(new Label($this->Filter . ' von ' . count($this->Content) . ' Einträgen')) : new PullRight(new Label(count($this->Content) . ' Einträge')))); } else { $this->Template->setVariable('FilterValue', ''); } $this->Template->setVariable('Content', array_shift($this->Content)); $this->Template->setVariable('ContentList', $this->Content); } else { $this->Template->setVariable('Content', $this->Content); $this->Template->setVariable('ContentList', array()); } if (is_array($this->Footer)) { $this->Template->setVariable('Footer', trim(implode('', $this->Footer))); } else { $this->Template->setVariable('Footer', trim((string) $this->Footer)); } return $this->Template->getContent(); }
/** * @return string */ public function getContent() { if (Access::useService()->hasAuthorization($this->Path)) { return $this->Template->getContent(); } else { return ''; } }
/** * @return string */ public function getContent() { $this->Template->setVariable('FormButtonList', $this->GridButtonList); $this->Template->setVariable('GridGroupList', $this->GridGroupList); $this->Template->setVariable('Hash', $this->getHash()); return $this->Template->getContent(); }
/** * @return string */ public function getContent() { $this->Template->setVariable('StageTitle', $this->Title); $this->Template->setVariable('StageDescription', $this->Description); $this->Template->setVariable('StageMessage', $this->Message); $this->Template->setVariable('StageContent', $this->Content); $this->Template->setVariable('StageMenu', $this->Menu); return $this->Template->getContent(); }
/** * @return string */ public function getContent() { $this->Template->setVariable('HeadList', $this->TableHead); $this->Template->setVariable('BodyList', $this->TableBody); $this->Template->setVariable('FootList', $this->TableFoot); $this->Template->setVariable('Hash', $this->getHash()); return $this->Template->getContent(); }
/** * @return string */ public function getContent() { if (is_array($this->Content)) { if ($this->Filter) { $this->Template->setVariable('Hash', $this->getHash()); if (!is_numeric($this->Filter)) { $this->Filter = 50; } $this->Template->setVariable('FilterSize', $this->Filter); array_unshift($this->Content, '<input type="text" class="form-control search" name="PanelSearch" placeholder="Filtern">' . ($this->Filter < count($this->Content) ? new PullRight(new Label($this->Filter . ' von ' . count($this->Content) . ' Einträgen')) : new PullRight(new Label(count($this->Content) . ' Einträge')))); } $this->Template->setVariable('Content', array_shift($this->Content)); $this->Template->setVariable('ContentList', $this->Content); } else { $this->Template->setVariable('Content', $this->Content); $this->Template->setVariable('ContentList', array()); } return $this->Template->getContent(); }
/** * @param string $Name * @param null|string $Placeholder * @param null|string $Label * @param IIconInterface $Icon * @param null|array $Option */ public function __construct($Name, $Placeholder = '', $Label = '', IIconInterface $Icon = null, $Option = null) { $this->Name = $Name; $this->Template = $this->getTemplate(__DIR__ . '/FileUpload.twig'); $this->Template->setVariable('ElementName', $Name); $this->Template->setVariable('ElementLabel', $Label); $this->Template->setVariable('ElementPlaceholder', $Placeholder); if (null !== $Icon) { $this->Template->setVariable('ElementIcon', $Icon); } $this->setPostValue($this->Template, $Name, 'ElementValue'); if (is_array($Option)) { $this->Template->setVariable('ElementOption', json_encode($Option)); } }
/** * @param bool $NoConnection * * @return string */ public function getContent($NoConnection = false) { $this->Template->setVariable('ManagerStyle', Style::getManager()); $this->Template->setVariable('ManagerScript', Script::getManager()); $this->Template->setVariable('NavigationCluster', implode('', $this->ClusterNavigation)); $this->Template->setVariable('BreadcrumbCluster', $this->ClusterBreadcrumb); $this->Template->setVariable('NavigationApplication', implode('', $this->ApplicationNavigation)); $this->Template->setVariable('BreadcrumbApplication', $this->ApplicationBreadcrumb); $this->Template->setVariable('NavigationModule', implode('', $this->ModuleNavigation)); $this->Template->setVariable('BreadcrumbModule', $this->ModuleBreadcrumb); $this->Template->setVariable('NavigationService', implode('', $this->ServiceNavigation)); $Debug = $this->getDebugger(); $this->Template->setVariable('DebuggerProtocol', $Debug->getProtocol()); $this->Template->setVariable('DebuggerHost', gethostname()); $this->Template->setVariable('DebuggerRuntime', $Debug->getRuntime()); $this->Template->setVariable('Content', implode('', $this->Content)); $this->Template->setVariable('PathBase', $this->getRequest()->getPathBase()); if (!$NoConnection) { $this->Template->setVariable('Consumer', '[' . Consumer::useService()->getConsumerBySession()->getAcronym() . '] ' . Consumer::useService()->getConsumerBySession()->getName()); } return $this->Template->getContent(); }
/** * @return string */ public function getContent() { return $this->Template->getContent(); }
/** * @param IBridgeInterface_Template $Template * * @return IBridgeInterface */ public function setContent(IBridgeInterface_Template $Template) { $this->Source = $Template->getContent(); return $this; }
/** * @return string */ public function getContent() { $this->Template->setVariable('BodyList', $this->TableRow); return $this->Template->getContent(); }
/** * @return string */ public function getContent() { $this->Template->setVariable('LinkList', $this->LinkList); $this->Template->setVariable('ContentList', $this->ContentList); return $this->Template->getContent(); }
/** * @return string */ public function getContent() { $this->Template->setVariable('Layout', $this->LayoutGroup); return $this->Template->getContent(); }
/** * @param mixed $Value * * @return Field */ public function setPrefixValue($Value) { $this->Template->setVariable('ElementPrefix', $Value); return $this; }