/** * Call parent-constructor, set language id and create local template-object * * @global $_LANGID */ public function __construct($pageContent) { global $_LANGID; parent::__construct(); $this->languageId = intval($_LANGID); $this->tpl = new \Cx\Core\Html\Sigma('.'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->tpl); $this->tpl->setErrorHandling(PEAR_ERROR_DIE); $this->tpl->setTemplate($pageContent); $this->tpl->setGlobalVariable("MODULE_INDEX", MODULE_INDEX); }
/** * Constructor Create the module-menu and an internal template-object * * @global $objInit * @global $objTemplate * @global $_CORELANG */ public function __construct() { global $objInit, $objTemplate, $_ARRAYLANG; \JS::activate('prototype'); \JS::activate('scriptaculous'); \Permission::checkAccess(ACCESS_ID_KNOWLEDGE, 'static'); parent::__construct(); $this->tpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Knowledge' . MODULE_INDEX . '/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->tpl); $this->tpl->setErrorHandling(PEAR_ERROR_DIE); $this->languageId = $objInit->userFrontendLangId; }
public function __construct() { parent::__construct(); }