当前位置: 首页>>代码示例>>PHP>>正文


PHP BxDolTemplate::__construct方法代码示例

本文整理汇总了PHP中BxDolTemplate::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BxDolTemplate::__construct方法的具体用法?PHP BxDolTemplate::__construct怎么用?PHP BxDolTemplate::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BxDolTemplate的用法示例。


在下文中一共展示了BxDolTemplate::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: isset

 /**
  * 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/');
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:14,代码来源:BxDolTemplateAdmin.php

示例2:

 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/');
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:11,代码来源:BxDolModuleTemplate.php

示例3: isset

 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/');
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:17,代码来源:BxDolStudioTemplate.php

示例4: strtolower

 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
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:18,代码来源:BxDolFilesUploader.php

示例5:

 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']);
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:5,代码来源:design.php

示例6: BxDolPrivacyQuery

 /**
  * constructor
  */
 function __construct($iOwnerId)
 {
     parent::__construct();
     $this->_iOwnerId = (int) $iOwnerId;
     $this->_oDb = new BxDolPrivacyQuery();
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:9,代码来源:BxDolPrivacyView.php

示例7: isset

 /**
  * 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;
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:45,代码来源:BxDolPaginate.php


注:本文中的BxDolTemplate::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。