Пример #1
0
 /**
  * Initializes data needed by the Object
  *
  * @param  DataContainer $dataContainer Contains data needed by Classes
  */
 protected function entryPoint($dataContainer)
 {
     parent::entryPoint($dataContainer);
     $this->_interface->setAjax(isset($_POST['ajax']) && $_POST['ajax'] == true);
     if (!$this->_interface->getAjax()) {
         //Only add buttons when no ajax-response is requested
         $this->_interface->setBacklink('index.php?module=web|Kuwasys|ClassList');
         $this->_interface->addButton(_g('Go to Main menu'), 'index.php?module=web|Kuwasys');
     }
 }
Пример #2
0
 /**
  * Initializes data needed by the Object
  * @param  DataContainer $dataContainer Contains data needed by Classes
  */
 protected function entryPoint($dataContainer)
 {
     parent::entryPoint($dataContainer);
     $subprogram = $this->_modExecCommand->subprogramGet();
     $this->_smartyModuleTemplatesPath = PATH_SMARTY_TPL . '/' . $subprogram . $this->relPath;
 }