/**
  * PHP5 constructor
  * @global object $objTemplate
  * @global array $_ARRAYLANG
  */
 function __construct()
 {
     global $objTemplate, $_ARRAYLANG;
     $this->objTemplate = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Downloads/View/Template/Backend');
     \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->objTemplate);
     $this->objTemplate->setErrorHandling(PEAR_ERROR_DIE);
     parent::__construct();
 }
Example #2
0
 /**
  * Constructor
  *
  * Calls the parent constructor and creates a local template object
  * @param $strPageContent string The content of the page as string.
  * @param $queryParams array The constructor accepts an array parameter $queryParams, which will
  *                           override the request parameters cmd and/or category, if given
  * override the request parameters cmd and/or category
  */
 function __construct($strPageContent, array $queryParams = array())
 {
     parent::__construct();
     $objFWUser = \FWUser::getFWUserObject();
     $this->userId = $objFWUser->objUser->login() ? $objFWUser->objUser->getId() : 0;
     $this->parseURLModifiers($queryParams);
     $this->objTemplate = new \Cx\Core\Html\Sigma('.');
     \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->objTemplate);
     $this->objTemplate->setErrorHandling(PEAR_ERROR_DIE);
     $this->objTemplate->setTemplate($strPageContent);
 }