function __construct($pageContent)
 {
     parent::__construct();
     $this->getSettings();
     $this->_pageContent = $pageContent;
     $this->_objTemplate = new \Cx\Core\Html\Sigma('.');
     \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTemplate);
 }
示例#2
0
 /**
  * PHP5 constructor
  * @global \Cx\Core\Html\Sigma
  * @see \Cx\Core\Html\Sigma::setErrorHandling, \Cx\Core\Html\Sigma::setVariable, initialize()
  */
 function __construct($administrate = false)
 {
     parent::__construct();
     $this->administrate = $administrate;
     $this->_objTpl = new \Cx\Core\Html\Sigma('.');
     \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
     $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
     $this->_initialize();
 }
示例#3
0
 /**
  * Initializes the news module by loading the configuration options
  * and initializing the template object with $pageContent.
  * 
  * @param  string  News content page
  */
 public function __construct($pageContent)
 {
     parent::__construct();
     $this->getSettings();
     $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($pageContent);
 }
示例#4
0
 /**
  * PHP5 Constructor
  *
  * @access public
  */
 function __construct()
 {
     global $_ARRAYLANG, $objInit, $objTemplate, $_CONFIG;
     parent::__construct();
     $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_CORE_MODULE_PATH . '/News/View/Template/Backend');
     \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
     $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
     $this->_saveSettings();
     $this->langId = $objInit->userFrontendLangId;
     $this->getSettings();
     $this->pageTitle = $_ARRAYLANG['TXT_NEWS_MANAGER'];
 }