コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
ファイル: Forum.class.php プロジェクト: Cloudrexx/cloudrexx
 /**
  * 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);
 }