/** * Constructor -> Create the module-menu and an internal template-object * @global InitCMS * @global \Cx\Core\Html\Sigma * @global array */ function __construct() { global $objInit, $objTemplate, $_CORELANG; parent::__construct(); $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Blog/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->_intLanguageId = FRONTEND_LANG_ID; $objFWUser = \FWUser::getFWUserObject(); $this->_intCurrentUserId = $objFWUser->objUser->getId(); $strNavigation = ''; $isAdmin = $objFWUser->objUser->getAdminStatus(); //if(in_array(120, $objFWUser->objUser->getStaticPermissionIds()) || $isAdmin) { $strNavigation .= '<a href="index.php?cmd=Blog" class="' . ($_GET['act'] == '' ? 'active' : '') . '">' . $_CORELANG['TXT_BLOG_ENTRY_MANAGE_TITLE'] . '</a>'; //} if (in_array(121, $objFWUser->objUser->getStaticPermissionIds()) || $isAdmin) { $strNavigation .= '<a href="index.php?cmd=Blog&act=addEntry" class="' . (in_array($_GET['act'], array('addEntry', 'editEntry')) ? 'active' : '') . '">' . $_CORELANG['TXT_BLOG_ENTRY_ADD_TITLE'] . '</a>'; } if (in_array(122, $objFWUser->objUser->getStaticPermissionIds()) || $isAdmin) { $strNavigation .= '<a href="index.php?cmd=Blog&act=manageCategory" class="' . (in_array($_GET['act'], array('manageCategory', 'manageCategory')) ? 'active' : '') . '">' . $_CORELANG['TXT_BLOG_CATEGORY_MANAGE_TITLE'] . '</a>'; } if (in_array(125, $objFWUser->objUser->getStaticPermissionIds()) || $isAdmin) { $strNavigation .= '<a href="index.php?cmd=Blog&act=networks" class="' . (in_array($_GET['act'], array('networks', 'editNetwork')) ? 'active' : '') . '">' . $_CORELANG['TXT_BLOG_NETWORKS_TITLE'] . '</a>'; } if (in_array(124, $objFWUser->objUser->getStaticPermissionIds()) || $isAdmin) { $strNavigation .= '<a href="index.php?cmd=Blog&act=settings" class="' . (in_array($_GET['act'], array('settings')) ? 'active' : '') . '">' . $_CORELANG['TXT_BLOG_SETTINGS_TITLE'] . '</a>'; } $objTemplate->setVariable('CONTENT_NAVIGATION', $strNavigation); }
/** * constructor * * global object $objTemplate * global array $_ARRAYLANG */ function __construct() { global $objTemplate, $_ARRAYLANG; $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_CORE_MODULE_PATH . '/NetTools/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); }
/** * Headlines constructor * * @param string $pageContent Template content */ function __construct($pageContent) { parent::__construct('.'); $this->getSettings(); $this->pageContent = $pageContent; \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); }
/** * Constructor -> Create the menu and copy the template * * @global array * @global \Cx\Core\Html\Sigma * @global InitCMS */ function __construct() { global $_ARRAYLANG, $objTemplate, $objInit; $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Gallery/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); \JS::registerCSS(substr(ASCMS_MODULE_FOLDER . '/Gallery/View/Style/main.css', 1)); $this->intLangId = $objInit->userFrontendLangId; $this->strImagePath = ASCMS_GALLERY_PATH . '/'; $this->strImageWebPath = ASCMS_GALLERY_WEB_PATH . '/'; $this->strThumbnailPath = ASCMS_GALLERY_THUMBNAIL_PATH . '/'; $this->strThumbnailWebPath = ASCMS_GALLERY_THUMBNAIL_WEB_PATH . '/'; $this->strImportPath = ASCMS_GALLERY_IMPORT_PATH . '/'; $this->importWebPath = ASCMS_GALLERY_IMPORT_WEB_PATH . '/'; if (imagetypes() & IMG_GIF) { $this->boolGifEnabled = true; } if (imagetypes() & IMG_JPG) { $this->boolJpgEnabled = true; } if (imagetypes() & IMG_PNG) { $this->boolPngEnabled = true; } $this->getSettings(); $this->checkImages(); parent::__construct(); }
/** * Constructor */ function __construct($pageContent) { $this->pageContent = $pageContent; $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_DOCUMENT_ROOT); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->path = ASCMS_DIR_PATH . '/'; $this->webPath = ASCMS_DIR_WEB_PATH . '/'; $this->imagePath = ASCMS_DIR_PATH . '/View/Media'; $this->imageWebPath = ASCMS_DIR_WEB_PATH . '/View/Media'; $this->mediaPath = ASCMS_MODULE_MEDIA_PATH . '/'; $this->mediaWebPath = ASCMS_MODULE_MEDIA_WEB_PATH . '/'; $this->rssPath = ASCMS_DIRECTORY_FEED_PATH . '/'; $this->rssWebPath = ASCMS_DIRECTORY_FEED_WEB_PATH . '/'; $this->folderImageLarge = "<img src='../../modules/Directory/View/Media/_folder_24.gif' alt='' />"; $this->folderImageSmall = "<img src='../../modules/Directory/View/Media/_folder.gif' alt='' />"; //create latest xml. (Dave, 2009-03-04: This sucks, as it causes the start // page to break if the FTP server doesn't work. And why // the hell do we need to re-create the RSS here anyhow?) #$this->createRSSlatest(); //get settings $this->settings = $this->getSettings(); //check community modul $objModulManager = new \Cx\Core\ComponentManager\Controller\ComponentManager(); $arrInstalledModules = $objModulManager->getModules(); if (in_array(23, $arrInstalledModules)) { $this->communityModul = true; } else { $this->communityModul = false; } }
/** * Constructor * * @access publice */ public function __construct() { $this->objTemplate = new \Cx\Core\Html\Sigma(ASCMS_DOCUMENT_ROOT); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->objTemplate); $this->objTemplate->setErrorHandling(PEAR_ERROR_DIE); $this->objTemplate->loadTemplateFile('/core/Core/View/Template/Backend/Index.html'); }
/** * PHP5 constructor * * @global \Cx\Core\Html\Sigma * @global array * @global array * @global array */ function __construct() { global $_ARRAYLANG; $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Block/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); if (isset($_GET['added']) && $_GET['added'] == 'true') { if (!empty($_GET['blockname'])) { $this->_strOkMessage = sprintf($_ARRAYLANG['TXT_BLOCK_BLOCK_ADDED_SUCCESSFULLY'], contrexx_raw2xhtml($_GET['blockname'])); } else { $this->_strOkMessage = $_ARRAYLANG['TXT_BLOCK_BLOCK_ADDED_SUCCESSFULLY']; } } if (isset($_GET['modified']) && $_GET['modified'] == 'true') { if (!empty($_GET['blockname'])) { $this->_strOkMessage = sprintf($_ARRAYLANG['TXT_BLOCK_BLOCK_UPDATED_SUCCESSFULLY'], contrexx_raw2xhtml($_GET['blockname'])); } else { $this->_strOkMessage = $_ARRAYLANG['TXT_BLOCK_BLOCK_UPDATED_SUCCESSFULLY']; } } if (isset($_POST['saveSettings'])) { $arrSettings = array('blockStatus' => isset($_POST['blockUseBlockSystem']) ? intval($_POST['blockUseBlockSystem']) : 0, 'blockRandom' => isset($_POST['blockUseBlockRandom']) ? intval($_POST['blockUseBlockRandom']) : 0); $this->_saveSettings($arrSettings); $this->_strOkMessage = $_ARRAYLANG['TXT_SETTINGS_UPDATED']; } }
/** * Constructor * @global object $objTemplate */ function __construct($pageContent) { $this->pageContent = $pageContent; $this->_objTpl = new \Cx\Core\Html\Sigma('.'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->mediaPath = ASCMS_MARKET_MEDIA_PATH . '/'; $this->mediaWebPath = ASCMS_MARKET_MEDIA_WEB_PATH . '/'; //get settings $this->settings = $this->getSettings(); //check community modul $objModulManager = new \Cx\Core\ComponentManager\Controller\ComponentManager(); $arrInstalledModules = $objModulManager->getModules(); if (in_array(23, $arrInstalledModules)) { $this->communityModul = true; } else { $this->communityModul = false; } //ipn Check if (isset($_GET['act'])) { switch ($_GET['act']) { case "paypalIpnCheck": $objPaypal = new \PayPal(); $objPaypal->ipnCheck(); exit; break; default: //nothging break; } } }
function __construct($pageContent) { $this->pageContent = $pageContent; $this->_objTpl = new \Cx\Core\Html\Sigma('.'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); }
/** * Constructor * * @global \Cx\Core\Html\Sigma * @global array */ public function __construct() { parent::__construct(); $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_CORE_MODULE_PATH . '/Access/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); }
/** * PHP5 constructor * * @global object $objTemplate * @global array $_ARRAYLANG */ public function __construct($name) { global $objTemplate, $_ARRAYLANG, $objJs; parent::__construct($name); $objJs = new CrmJavascript(); $cx = \Cx\Core\Core\Controller\Cx::instanciate(); $this->_mediaPath = $cx->getWebsiteMediaCrmPath(); $this->_objTpl = new \Cx\Core\Html\Sigma($cx->getCodeBaseModulePath() . '/' . $this->moduleName . '/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->act = $_REQUEST['act']; $contentNavigation = ''; if (\Permission::checkAccess($this->customerAccessId, 'static', true)) { $contentNavigation .= "<a href='index.php?cmd=" . $this->moduleName . "&act=customers' class='" . ($this->act == 'customers' ? 'active' : '') . "' title='" . $_ARRAYLANG['TXT_CRM_CUSTOMERS'] . "'>{$_ARRAYLANG['TXT_CRM_CUSTOMERS']}</a>"; } $contentNavigation .= "<a href='index.php?cmd=" . $this->moduleName . "&act=task' class='" . ($this->act == 'task' ? 'active' : '') . "' title='{$_ARRAYLANG['TXT_CRM_TASKS']}'>{$_ARRAYLANG['TXT_CRM_TASKS']}</a>\n <a href='index.php?cmd=" . $this->moduleName . "&act=deals' class='" . ($this->act == 'deals' ? 'active' : '') . "' title='{$_ARRAYLANG['TXT_CRM_OPPORTUNITY']}'>{$_ARRAYLANG['TXT_CRM_OPPORTUNITY']}</a>"; if (\Permission::checkAccess($this->adminAccessId, 'static', true)) { $contentNavigation .= "<a href='index.php?cmd=" . $this->moduleName . "&act=settings' class='" . ($this->act == 'settings' || $this->act == 'mailtemplate_overview' || $this->act == 'mailtemplate_edit' ? 'active' : '') . "' title='" . $_ARRAYLANG['TXT_CRM_SETTINGS'] . "'>" . $_ARRAYLANG['TXT_CRM_SETTINGS'] . "</a>"; } $objTemplate->setVariable("CONTENT_NAVIGATION", $contentNavigation); $dispatcher = CrmEventDispatcher::getInstance(); $default_handler = new \Cx\Modules\Crm\Model\Events\CrmDefaultEventHandler(); $dispatcher->addHandler(CRM_EVENT_ON_USER_ACCOUNT_CREATED, $default_handler); $dispatcher->addHandler(CRM_EVENT_ON_TASK_CREATED, $default_handler); $dispatcher->addHandler(CRM_EVENT_ON_ACCOUNT_UPDATED, $default_handler); $this->_initCrmModule(); }
public function getPage($pos, $page_content) { global $_CONFIG, $_ARRAYLANG; $objTpl = new \Cx\Core\Html\Sigma('.'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($objTpl); $objTpl->setErrorHandling(PEAR_ERROR_DIE); $objTpl->setTemplate($page_content); $objTpl->setGlobalVariable($_ARRAYLANG); $term = isset($_REQUEST['term']) ? trim(contrexx_input2raw($_REQUEST['term'])) : ''; if (strlen($term) >= 3) { $term = trim(contrexx_input2raw($_REQUEST['term'])); $this->setTerm($term); $eventHandlerInstance = \Env::get('cx')->getEvents(); $eventHandlerInstance->triggerEvent('SearchFindContent', array($this)); if ($this->result->size() == 1) { $arraySearchResults[] = $this->result->toArray(); } else { $arraySearchResults = $this->result->toArray(); } usort($arraySearchResults, function ($a, $b) { if ($a['Score'] == $b['Score']) { if (isset($a['Date'])) { if ($a['Date'] == $b['Date']) { return 0; } if ($a['Date'] > $b['Date']) { return -1; } return 1; } return 0; } if ($a['Score'] > $b['Score']) { return -1; } return 1; }); $countResults = sizeof($arraySearchResults); if (!is_numeric($pos)) { $pos = 0; } $paging = getPaging($countResults, $pos, '&section=Search&term=' . contrexx_raw2encodedUrl($term), '<b>' . $_ARRAYLANG['TXT_SEARCH_RESULTS'] . '</b>', true); $objTpl->setVariable('SEARCH_PAGING', $paging); $objTpl->setVariable('SEARCH_TERM', contrexx_raw2xhtml($term)); if ($countResults > 0) { $searchComment = sprintf($_ARRAYLANG['TXT_SEARCH_RESULTS_ORDER_BY_RELEVANCE'], contrexx_raw2xhtml($term), $countResults); $objTpl->setVariable('SEARCH_TITLE', $searchComment); $arraySearchOut = array_slice($arraySearchResults, $pos, $_CONFIG['corePagingLimit']); foreach ($arraySearchOut as $details) { $objTpl->setVariable(array('COUNT_MATCH' => $_ARRAYLANG['TXT_RELEVANCE'] . ' ' . $details['Score'] . '%', 'LINK' => '<b><a href="' . $details['Link'] . '" title="' . contrexx_raw2xhtml($details['Title']) . '">' . contrexx_raw2xhtml($details['Title']) . '</a></b>', 'SHORT_CONTENT' => contrexx_raw2xhtml($details['Content']))); $objTpl->parse('search_result'); } return $objTpl->get(); } } $noresult = $term != '' ? sprintf($_ARRAYLANG['TXT_NO_SEARCH_RESULTS'], $term) : $_ARRAYLANG['TXT_PLEASE_ENTER_SEARCHTERM']; $objTpl->setVariable('SEARCH_TITLE', $noresult); return $objTpl->get(); }
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); }
/** * constructor * * global \Cx\Core\Html\Sigma * global array */ function __construct() { parent::__construct(); $this->_objTpl = new \Cx\Core\Html\Sigma($this->cx->getCodeBaseCoreModulePath() . '/Stats/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->firstDate = time(); }
/** * PHP 5 Constructor */ function __construct() { $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_CORE_MODULE_PATH . '/member/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->act = isset($_REQUEST['act']) ? $_REQUEST['act'] : ''; $this->setNavigation(); }
/** * 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(); }
/** * PHP5 constructor * * @global object $objTemplate * @global array $_ARRAYLANG */ function __construct($pageContent) { $this->_intLanguageId = 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($pageContent); }
/** * 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); }
/** * Constructor php5 */ function __construct($pageContent) { global $_LANGID; $this->_pageContent = $pageContent; $this->_objTpl = new \Cx\Core\Html\Sigma('.'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_intLangId = $_LANGID; $this->_arrSettings = $this->createSettingsArray(); }
/** * Constructor PHP5 */ function __construct($pageContent) { $this->_pageContent = $pageContent; $this->_objTemplate = new \Cx\Core\Html\Sigma('.'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTemplate); $this->rssPath = ASCMS_DIRECTORY_FEED_PATH . '/'; $this->rssWebPath = ASCMS_DIRECTORY_FEED_WEB_PATH . '/'; $this->settings = $this->getSettings(); }
/** * 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(); }
/** * 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; }
/** * PHP5 constructor * * @global \Cx\Core\Html\Sigma * @global array */ function __construct() { global $objTemplate, $_ARRAYLANG; $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Podcast/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->_youTubeIdRegex = '#.*[\\?&]v=(' . $this->_youTubeAllowedCharacters . '{' . $this->_youTubeIdLength . '}).*#'; parent::__construct(); }
/** * Initialize forms and template * @param string $pageContent The page content template * @return Egov The Egov object */ function __construct($pageContent) { $this->initContactForms(); $this->pageContent = $pageContent; $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($this->pageContent, true, true); }
public function getBackendViewMessage() { $template = new \Cx\Core\Html\Sigma(); $template->setErrorHandling(PEAR_ERROR_DIE); $template->loadTemplateFile($this->templateFile); $template->setVariable($this->templatePlaceholders); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($template); return $template->get(); }
/** * Constructor php5 */ function __construct($pageContent) { global $_LANGID; $this->_pageContent = $pageContent; $this->_objTpl = new \Cx\Core\Html\Sigma('.'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_langId = $_LANGID; parent::__construct(); }
/** * PHP5 constructor * * @global object $objTemplate * @global array $_ARRAYLANG */ function __construct() { global $objTemplate, $_ARRAYLANG, $objDatabase; parent::__construct(); $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Survey/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $objTemplate->setVariable("CONTENT_NAVIGATION", "<a href='index.php?cmd=Survey' title='" . $_ARRAYLANG['TXT_OVERVIEW'] . "'>" . $_ARRAYLANG['TXT_OVERVIEW'] . "</a>\n <a href='index.php?cmd=Survey&act=createOrCopy' title='" . $_ARRAYLANG['TXT_CREATE_SURVEY'] . "'>" . $_ARRAYLANG['TXT_CREATE_SURVEY'] . "</a>\n <a href='index.php?cmd=Survey&act=settings' title='" . $_ARRAYLANG['SETTINGS_TEXT'] . "'>" . $_ARRAYLANG['SETTINGS_TEXT'] . "</a>"); }
/** * Constructor * * @param string * @access public */ function __construct() { global $_ARRAYLANG, $objInit, $objTemplate; $this->pageTitle = $_ARRAYLANG["TXT_JOBS_MANAGER"]; $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Jobs/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->langId = $objInit->userFrontendLangId; }
/** * PHP5 Constructor * * @param string $pageContent page content from content manager */ public function __construct($pageContent) { $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($pageContent); $this->objUrl = \Env::get("Resolver")->getUrl(); $this->uriParams = $this->objUrl->getParamArray(); }
/** * Constructor * * @param string * @access public */ function __construct() { global $_ARRAYLANG, $objInit, $objTemplate; $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_CORE_MODULE_PATH . '/banner/View/Template/Backend'); \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE); $this->pageTitle = $_ARRAYLANG['TXT_BANNER_ADMINISTRATION']; $this->langId = $objInit->userFrontendLangId; $this->getSettings(); }