/** * Constructor -> Create the module-menu and an internal template-object * @global InitCMS * @global \Cx\Core\Html\Sigma * @global array */ function __construct() { global $objInit; parent::__construct(); $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Forum/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->_intLangId = $objInit->userFrontendLangId; }
/** * Constructor * * Call parent-constructor, set language id and create local template-object * @global integer */ function __construct($strPageContent) { global $_LANGID; parent::__construct(); $this->_intLangId = intval($_LANGID); $this->_objTpl = new \Cx\Core\Html\Sigma('.'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->_objTpl->setTemplate($strPageContent); }