Ejemplo n.º 1
0
 /**
  * Parse & display the page
  */
 protected function parse()
 {
     parent::parse();
     // parse datagrid
     $this->tpl->assign('dgBackend', $this->dgBackend->getNumResults() != 0 ? $this->dgBackend->getContent() : false);
     $this->tpl->assign('dgFrontend', $this->dgFrontend->getNumResults() != 0 ? $this->dgFrontend->getContent() : false);
     // parse filter
     $this->tpl->assign('language', BL::getWorkingLanguage());
 }
Ejemplo n.º 2
0
 /**
  * Parse.
  */
 protected function parse()
 {
     parent::parse();
     // assign theme data
     $this->tpl->assign('name', $this->currentTheme);
     $this->tpl->assign('warnings', $this->warnings);
     $this->tpl->assign('information', $this->information);
     $this->tpl->assign('showExtensionsInstallTheme', !BackendExtensionsModel::isThemeInstalled($this->currentTheme) && BackendAuthentication::isAllowedAction('InstallTheme'));
     // data grids
     $this->tpl->assign('dataGridTemplates', isset($this->dataGridTemplates) && $this->dataGridTemplates->getNumResults() > 0 ? $this->dataGridTemplates->getContent() : false);
 }
Ejemplo n.º 3
0
 /**
  * Parse.
  */
 protected function parse()
 {
     parent::parse();
     // assign module data
     $this->tpl->assign('name', $this->currentModule);
     $this->tpl->assign('warnings', $this->warnings);
     $this->tpl->assign('information', $this->information);
     $this->tpl->assign('showExtensionsInstallModule', !BackendModel::isModuleInstalled($this->currentModule) && BackendAuthentication::isAllowedAction('InstallModule'));
     // data grids
     $this->tpl->assign('dataGridEvents', isset($this->dataGridEvents) && $this->dataGridEvents->getNumResults() > 0 ? $this->dataGridEvents->getContent() : false);
     $this->tpl->assign('dataGridCronjobs', isset($this->dataGridCronjobs) && $this->dataGridCronjobs->getNumResults() > 0 ? $this->dataGridCronjobs->getContent() : false);
 }
Ejemplo n.º 4
0
 /**
  * Parse & display the page
  */
 protected function parse()
 {
     parent::parse();
     // parse datagrids
     $this->tpl->assign('dgLabels', $this->dgLabels->getNumResults() != 0 ? $this->dgLabels->getContent() : false);
     $this->tpl->assign('dgMessages', $this->dgMessages->getNumResults() != 0 ? $this->dgMessages->getContent() : false);
     $this->tpl->assign('dgErrors', $this->dgErrors->getNumResults() != 0 ? $this->dgErrors->getContent() : false);
     $this->tpl->assign('dgActions', $this->dgActions->getNumResults() != 0 ? $this->dgActions->getContent() : false);
     // is filtered?
     if ($this->getParameter('form', 'string', '') == 'filter') {
         $this->tpl->assign('filter', true);
     }
     // parse filter as query
     $this->tpl->assign('filter', $this->filterQuery);
     // parse isGod
     $this->tpl->assign('isGod', $this->isGod);
     // parse noItems, if all the datagrids are empty
     $this->tpl->assign('noItems', $this->dgLabels->getNumResults() == 0 && $this->dgMessages->getNumResults() == 0 && $this->dgErrors->getNumResults() == 0 && $this->dgActions->getNumResults() == 0);
     $this->tpl->assign('hasSubmissions', $this->hasSubmissions);
     // parse the add URL
     $this->tpl->assign('addURL', BackendModel::createURLForAction('Add', null, null, null) . $this->filterQuery);
 }