コード例 #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, $objTemplate, $_ARRAYLANG;
     parent::__construct();
     $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Data/View/Template/Backend');
     $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
     $this->_intLanguageId = $objInit->userFrontendLangId;
 }
コード例 #2
0
 /**
  * Constructor php5
  */
 function __construct($strPageContent)
 {
     global $_LANGID;
     parent::__construct();
     $this->_strPageContent = $strPageContent;
     $this->_objTpl = new \Cx\Core\Html\Sigma('.');
     \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
     $this->_intLanguageId = intval($_LANGID);
     $this->_arrSettings = $this->createSettingsArray();
 }
コード例 #3
0
ファイル: Data.class.php プロジェクト: nahakiole/cloudrexx
 /**
  * Constructor
  *
  * Call parent constructor, set language id and create local template object
  * @global    integer
  */
 function __construct($strPageContent)
 {
     global $_LANGID;
     parent::__construct();
     $this->_intLanguageId = intval($_LANGID);
     $this->_intCurrentUserId = isset($_SESSION['auth']['userid']) ? intval($_SESSION['auth']['userid']) : 0;
     $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);
 }