/** * Constructor */ function __construct($sHomeFolder) { parent::__construct(BX_DIRECTORY_PATH_ROOT . $sHomeFolder . DIRECTORY_SEPARATOR, BX_DOL_URL_ROOT . $sHomeFolder . '/'); $this->_sPrefix = 'BxDolTemplateAdmin'; $this->_sInjectionsTable = 'sys_injections_admin'; $this->_sInjectionsCache = 'sys_injections_admin.inc'; $this->_sCodeKey = 'askin'; $this->_sCode = isset($_COOKIE[$this->_sCodeKey]) && preg_match('/^[A-Za-z0-9_-]+$/', $_COOKIE[$this->_sCodeKey]) ? $_COOKIE[$this->_sCodeKey] : BX_DOL_TEMPLATE_DEFAULT_CODE; $this->_sCode = isset($_GET[$this->_sCodeKey]) && preg_match('/^[A-Za-z0-9_-]+$/', $_GET[$this->_sCodeKey]) ? $_GET[$this->_sCodeKey] : $this->_sCode; $this->addLocationJs('system_admin_js', $this->_sRootPath . 'js/', $this->_sRootUrl . 'js/'); }
function __construct(&$oConfig, &$oDb, $sRootPath = BX_DIRECTORY_PATH_ROOT, $sRootUrl = BX_DOL_URL_ROOT) { parent::__construct($sRootPath, $sRootUrl); $this->_oDb =& $oDb; $this->_oConfig =& $oConfig; $sName = $oConfig->getName(); $sHomePath = $oConfig->getHomePath(); $sHomeUrl = $oConfig->getHomeUrl(); $this->addLocation($sName, $sHomePath, $sHomeUrl); $this->addLocationJs($sName, $sHomePath . 'js/', $sHomeUrl . 'js/'); }
function __construct() { if (isset($GLOBALS['bxDolClasses'][get_class($this)])) { trigger_error('Multiple instances are not allowed for the class: ' . get_class($this), E_USER_ERROR); } parent::__construct(); $this->_sRootPath = BX_DOL_DIR_STUDIO; $this->_sRootUrl = BX_DOL_URL_STUDIO; $this->_sPrefix = 'BxDolStudioTemplate'; $this->_sInjectionsTable = 'sys_injections_admin'; $this->_sInjectionsCache = 'sys_injections_admin.inc'; $this->_sCodeKey = 'sskin'; $this->_sCode = isset($_COOKIE[$this->_sCodeKey]) && preg_match('/^[A-Za-z0-9_-]+$/', $_COOKIE[$this->_sCodeKey]) ? $_COOKIE[$this->_sCodeKey] : BX_DOL_STUDIO_TEMPLATE_DEFAULT_CODE; $this->_sCode = isset($_GET[$this->_sCodeKey]) && preg_match('/^[A-Za-z0-9_-]+$/', $_GET[$this->_sCodeKey]) ? $_GET[$this->_sCodeKey] : $this->_sCode; $this->addLocation('studio', $this->_sRootPath, $this->_sRootUrl); $this->addLocationJs('system_admin_js', $this->_sRootPath . 'js/', $this->_sRootUrl . 'js/'); }
function __construct($sUploadTypeNC = 'Common') { parent::__construct(); $this->sTempFilename = ''; $this->sUploadTypeNC = $sUploadTypeNC; $this->sUploadTypeLC = strtolower($this->sUploadTypeNC); $this->_iOwnerId = $this->_getAuthorId(); $this->_sJsPostObject = 'o' . $this->sUploadTypeNC . 'Upload'; $this->sSendFileInfoFormCaption = ''; $GLOBALS['oSysTemplate']->addJsTranslation(array('_bx_' . $this->sUploadTypeLC . 's_val_title_err', '_bx_' . $this->sUploadTypeLC . 's_val_descr_err')); //--- Get Extras ---// $this->_aExtras = array(); if (!empty($_POST)) { $this->_aExtras = $this->_getExtraParams($_POST); } $this->iMaxFilesize = min(return_bytes(ini_get('upload_max_filesize')), return_bytes(ini_get('post_max_size'))); //max allowed from php.ini }
function __construct($sRootPath = BX_DIRECTORY_PATH_ROOT, $sRootUrl = BX_DOL_URL_ROOT) { parent::__construct($sRootPath, $sRootUrl); $this->addLocation('BxDolOrcaForums', $GLOBALS['gConf']['dir']['base'], $GLOBALS['gConf']['url']['base']); }
/** * constructor */ function __construct($iOwnerId) { parent::__construct(); $this->_iOwnerId = (int) $iOwnerId; $this->_oDb = new BxDolPrivacyQuery(); }
/** * Constructor */ function __construct($aParams) { parent::__construct(); //--- Main settings ---// $this->_iStart = isset($aParams['start']) ? (int) $aParams['start'] : 0; $this->_iCount = isset($aParams['count']) ? (int) $aParams['count'] : 0; $this->_iPerPage = isset($aParams['per_page']) ? (int) $aParams['per_page'] : BX_DOL_PAGINATE_PER_PAGE_DEFAULT; $this->_sSorting = isset($aParams['sorting']) ? $aParams['sorting'] : ''; $this->_sPageUrl = isset($aParams['page_url']) ? $aParams['page_url'] : BX_DOL_URL_ROOT; $this->_iRange = isset($aParams['range']) ? (int) $aParams['range'] : BX_DOL_PAGINATE_RANGE; $this->_iPage = isset($aParams['page']) ? (int) $aParams['page'] : 0; $this->_iPages = 0; $this->_sViewAllUrl = isset($aParams['view_all_url']) ? $aParams['view_all_url'] : BX_DOL_URL_ROOT; //--- Check Start values ---// if (empty($this->_iStart) && !empty($this->_iPage)) { $this->_iStart = ($this->_iPage - 1) * $this->_iPerPage; $this->_iPage = 0; } //--- JS mode settings ---// $this->_sOnChangePage = isset($aParams['on_change_page']) ? $aParams['on_change_page'] : ''; $this->_sOnChangePerPage = isset($aParams['on_change_per_page']) ? $aParams['on_change_per_page'] : ''; $this->_sOnChangeSorting = isset($aParams['on_change_sorting']) ? $aParams['on_change_sorting'] : ''; //--- Per page settings ---// $this->_sPerPageType = isset($aParams['per_page_type']) ? $aParams['per_page_type'] : BX_DOL_PAGINATE_PER_PAGE_TYPE_STATIC; $this->_iPerPageStep = isset($aParams['per_page_step']) ? (int) $aParams['per_page_step'] : BX_DOL_PAGINATE_PER_PAGE_STEP; $this->_iPerPageInterval = isset($aParams['per_page_interval']) ? (int) $aParams['per_page_interval'] : BX_DOL_PAGINATE_PER_PAGE_INTERVAL; $this->_sPerPageValues = isset($aParams['per_page_values']) ? (int) $aParams['per_page_values'] : '…,' . BX_DOL_PAGINATE_PER_PAGE_VALUES; //--- Paginate's layout ---// $this->_bInfo = isset($aParams['info']) && $aParams['info'] === true; $this->_bViewAll = isset($aParams['view_all']) && $aParams['view_all'] === true; $this->_bPageReloader = isset($aParams['page_reloader']) && $aParams['page_reloader'] === true; $this->_bPerPageChanger = isset($aParams['per_page_changer']) && $aParams['per_page_changer'] === true; $this->_bPageLinks = !isset($aParams['page_links']) || isset($aParams['page_links']) && $aParams['page_links'] === true; $this->_bPageLinksFirstLast = $this->_bPageLinks && isset($aParams['page_links_first_last']) && $aParams['page_links_first_last'] === true; //--- Templates ---// $this->_sButtonActiveTmpl = $GLOBALS['oTemplConfig']->sPaginateButtonActiveTmpl; $this->_sButtonActiveTmplMobile = $GLOBALS['oTemplConfig']->sPaginateButtonActiveTmplMobile; $this->_sButtonInactiveTmpl = $GLOBALS['oTemplConfig']->sPaginateButtonInactiveTmpl; $this->_sLinkActiveTmpl = $GLOBALS['oTemplConfig']->sPaginateLinkActiveTmpl; $this->_sLinkInactiveTmpl = $GLOBALS['oTemplConfig']->sPaginateLinkInactiveTmpl; $this->_sSortingTmpl = $GLOBALS['oTemplConfig']->sPaginateSortingTmpl; }