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


PHP BxDol类代码示例

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


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

示例1: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     if (isset($GLOBALS['bxDolClasses']['BxDolInformer'])) {
         trigger_error('Multiple instances are not allowed for the BxDolInformer class.', E_USER_ERROR);
     }
     parent::__construct();
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:10,代码来源:BxDolInformer.php

示例2: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->aZonesUrls = array(2 => BX_DIRECTORY_PATH_MODULES . "boonex/antispam/data/two-level-tlds", 3 => BX_DIRECTORY_PATH_MODULES . "boonex/antispam/data/three-level-tlds");
     $this->oDb = BxDolDb::getInstance();
     $this->initZones();
 }
开发者ID:Baloo7super,项目名称:dolphin,代码行数:10,代码来源:BxAntispamDNSURIBlacklists.php

示例3: __construct

 function __construct()
 {
     parent::__construct();
     if (class_exists('BxDolDb') && BxDolDb::getInstance()) {
         $this->_aConfig['aLessConfig']['bx-page-width'] = getParam('main_div_width');
     }
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:7,代码来源:BxBaseConfig.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->oSession = BxDolSession::getInstance();
     $this->sErrorCode = 'oauth_err_code';
     $this->sErrorMessage = 'oauth_err_message';
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:7,代码来源:BxDolStudioOAuth.php

示例5: __construct

 function __construct($iTimeStart)
 {
     parent::__construct();
     $this->oConfig = new BxProfilerConfig($GLOBALS['bx_profiler_module']);
     $this->oTemplate = new BxProfilerTemplate($this->oConfig);
     $this->oTemplateAdmin = BxDolStudioTemplate::getInstance();
     $aCss = array('profiler.css', BX_DIRECTORY_PATH_PLUGINS_PUBLIC . 'jush/|jush.css');
     $aJs = array('jquery.tablesorter.min.js', 'profiler.js', 'jush/jush.js');
     foreach ($aCss as $sCssUrl) {
         $this->oTemplate->addCss($sCssUrl);
         $this->oTemplateAdmin->addCss($sCssUrl);
     }
     foreach ($aJs as $sJsUrl) {
         $this->oTemplate->addJs($sJsUrl);
         $this->oTemplateAdmin->addJs($sJsUrl);
     }
     if (getParam('bx_profiler_long_sql_queries_log')) {
         $this->aConf['long_query'] = getParam('bx_profiler_long_sql_queries_time');
     }
     if (getParam('bx_profiler_long_module_query_log')) {
         $this->aConf['long_module'] = getParam('bx_profiler_long_module_query_time');
     }
     if (getParam('bx_profiler_long_page_log')) {
         $this->aConf['long_page'] = getParam('bx_profiler_long_page_time');
     }
     $this->_iTimeStart = $iTimeStart;
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:27,代码来源:BxProfiler.php

示例6: __construct

 /**
  * Constructor
  */
 function __construct($aObject)
 {
     parent::__construct();
     $this->_aObject = $aObject;
     $this->_sObject = $aObject['object'];
     $this->_oDb = new BxDolRssQuery($this->_aObject);
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:10,代码来源:BxDolRss.php

示例7: __construct

 protected function __construct($oTemplate)
 {
     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->_oTemplate = $oTemplate ? $oTemplate : BxDolTemplate::getInstance();
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:8,代码来源:BxBaseFunctions.php

示例8: __construct

 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->oDb = BxDolLanguagesQuery::getInstance();
 }
开发者ID:Baloo7super,项目名称:dolphin,代码行数:8,代码来源:BxDolLanguages.php

示例9: __construct

 function __construct()
 {
     parent::__construct();
     $this->oDb = new BxDolStudioModulesQuery();
     $this->sJsObject = 'oBxDolStudioModules';
     $this->sLangPrefix = 'mod';
     $this->sTemplPrefix = 'mod';
     $this->sParamPrefix = 'mod';
 }
开发者ID:Baloo7super,项目名称:dolphin,代码行数:9,代码来源:BxDolStudioModules.php

示例10: __construct

 private 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->oDb = new BxDolSessionQuery();
     $this->sId = '';
     $this->iUserId = 0;
     $this->aData = array();
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:11,代码来源:BxDolSession.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_oQuery = new BxDolLiveUpdatesQuery();
     $this->_iInterval = (int) $this->_oQuery->getParam('sys_live_updates_interval');
     $this->_iCacheTTL = 86400;
     $this->_sCacheKey = 'sys_live_updates_' . bx_get_logged_profile_id();
     $this->_sJsClass = 'BxDolLiveUpdates';
     $this->_sJsObject = 'oLiveUpdates';
     $this->_aSystemsActive = array();
     $this->_aSystems = $this->_getCachedSystems();
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:12,代码来源:BxDolLiveUpdates.php

示例12: __construct

 /**
  * Constructor
  */
 protected function __construct($iProfileId)
 {
     $iProfileId = (int) $iProfileId;
     $sClass = get_class($this) . '_' . $iProfileId;
     if (isset($GLOBALS['bxDolClasses'][$sClass])) {
         trigger_error('Multiple instances are not allowed for the class: ' . get_class($this), E_USER_ERROR);
     }
     parent::__construct();
     $this->_iProfileID = $iProfileId;
     // since constructor is protected $iProfileId is always valid
     $this->_oQuery = BxDolProfileQuery::getInstance();
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:15,代码来源:BxDolProfile.php

示例13: __construct

 /**
  * set database parameters and connect to it
  */
 protected function __construct($aDbConf = false)
 {
     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();
     if (false === $aDbConf) {
         $this->_sHost = BX_DATABASE_HOST;
         $this->_sPort = BX_DATABASE_PORT;
         $this->_sSocket = BX_DATABASE_SOCK;
         $this->_sDbname = BX_DATABASE_NAME;
         $this->_sUser = BX_DATABASE_USER;
         $this->_sPassword = BX_DATABASE_PASS;
     } else {
         $this->_sHost = $aDbConf['host'];
         $this->_sPort = $aDbConf['port'];
         $this->_sSocket = $aDbConf['sock'];
         $this->_sDbname = $aDbConf['name'];
         $this->_sUser = $aDbConf['user'];
         $this->_sPassword = $aDbConf['pwd'];
         $this->_bErrorChecking = isset($aDbConf['error_checking']) ? $aDbConf['error_checking'] : true;
     }
     $this->_iCurrentResType = MYSQL_ASSOC;
     // connect to db automatically
     if (empty($GLOBALS['bx_db__rLink'])) {
         $this->connect();
         $GLOBALS['gl_db_cache'] = array();
     } else {
         $this->_rLink = $GLOBALS['bx_db__rLink'];
     }
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:34,代码来源:BxDolDb.php

示例14: array

 function __construct()
 {
     parent::__construct();
     $this->aType2ClassCSS = array(BX_DOL_AUDIT_FAIL => 'fail', BX_DOL_AUDIT_WARN => 'warn', BX_DOL_AUDIT_UNDEF => 'undef', BX_DOL_AUDIT_OK => 'ok');
     $this->aType2Title = array(BX_DOL_AUDIT_FAIL => _t('_sys_audit_title_fail'), BX_DOL_AUDIT_WARN => _t('_sys_audit_title_warn'), BX_DOL_AUDIT_UNDEF => _t('_sys_audit_title_undef'), BX_DOL_AUDIT_OK => _t('_sys_audit_title_ok'));
     $this->sMinPhpVer = '5.3.0';
     $this->aPhpSettings = array('allow_url_fopen' => array('op' => '=', 'val' => true, 'type' => 'bool'), 'allow_url_include' => array('op' => '=', 'val' => false, 'type' => 'bool'), 'magic_quotes_gpc' => array('op' => '=', 'val' => false, 'type' => 'bool', 'warn' => 1), 'memory_limit' => array('op' => '>=', 'val' => 128 * 1024 * 1024, 'type' => 'bytes', 'unlimited' => -1), 'post_max_size' => array('op' => '>=', 'val' => 2 * 1024 * 1024, 'type' => 'bytes', 'warn' => 1), 'upload_max_filesize' => array('op' => '>=', 'val' => 2 * 1024 * 1024, 'type' => 'bytes', 'warn' => 1), 'register_globals' => array('op' => '=', 'val' => false, 'type' => 'bool'), 'safe_mode' => array('op' => '=', 'val' => false, 'type' => 'bool'), 'short_open_tag' => array('op' => '=', 'val' => true, 'type' => 'bool'), 'disable_functions' => array('op' => 'without', 'val' => 'shell_exec,eval,assert,phpinfo,getenv,ini_set,mail,fsockopen,chmod,parse_ini_file'), 'php module: mysql' => array('op' => 'module', 'val' => 'mysql'), 'php module: curl' => array('op' => 'module', 'val' => 'curl'), 'php module: gd' => array('op' => 'module', 'val' => 'gd'), 'php module: mbstring' => array('op' => 'module', 'val' => 'mbstring'), 'php module: json' => array('op' => 'module', 'val' => 'json'), 'php module: fileinfo' => array('op' => 'module', 'val' => 'fileinfo'), 'php module: zip' => array('op' => 'module', 'val' => 'zip'), 'php module: openssl' => array('op' => 'module', 'val' => 'openssl'), 'php module: exif' => array('op' => 'module', 'val' => 'exif'));
     $this->sMinMysqlVer = '4.1.2';
     $this->aMysqlOptimizationSettings = array('key_buffer_size' => array('op' => '>=', 'val' => 128 * 1024, 'type' => 'bytes'), 'query_cache_limit' => array('op' => '>=', 'val' => 1000000), 'query_cache_size' => array('op' => '>=', 'val' => 16 * 1024 * 1024, 'type' => 'bytes'), 'query_cache_type' => array('op' => 'strcasecmp', 'val' => 'on'), 'max_heap_table_size' => array('op' => '>=', 'val' => 16 * 1024 * 1024, 'type' => 'bytes'), 'tmp_table_size' => array('op' => '>=', 'val' => 16 * 1024 * 1024, 'type' => 'bytes'), 'thread_cache_size ' => array('op' => '>', 'val' => 0));
     $this->aOptimizationSettings = array('DB cache' => array('enabled' => 'sys_db_cache_enable', 'cache_engine' => 'sys_db_cache_engine', 'check_accel' => true), 'Page blocks cache' => array('enabled' => 'sys_pb_cache_enable', 'cache_engine' => 'sys_pb_cache_engine', 'check_accel' => true), 'Member menu cache' => array('enabled' => 'always_on', 'cache_engine' => 'sys_mm_cache_engine', 'check_accel' => true), 'Templates Cache' => array('enabled' => 'sys_template_cache_enable', 'cache_engine' => 'sys_template_cache_engine', 'check_accel' => true), 'CSS files cache' => array('enabled' => 'sys_template_cache_css_enable', 'cache_engine' => '', 'check_accel' => false), 'JS files cache' => array('enabled' => 'sys_template_cache_js_enable', 'cache_engine' => '', 'check_accel' => false), 'Compression for CSS/JS cache' => array('enabled' => 'sys_template_cache_compress_enable', 'cache_engine' => '', 'check_accel' => false));
     $this->aRequiredApacheModules = array('rewrite_module' => 'mod_rewrite');
     if (isset($_GET['action'])) {
         $sOutput = null;
         switch ($_GET['action']) {
             case 'audit_send_test_email':
                 $sOutput = $this->sendTestEmail();
                 break;
             case 'phpinfo':
                 ob_start();
                 phpinfo();
                 $sOutput = ob_get_clean();
                 break;
             case 'phpinfo_popup':
                 $sUrlSelf = bx_js_string($_SERVER['PHP_SELF'], BX_ESCAPE_STR_APOS);
                 $sUrlSelf = bx_append_url_params($sUrlSelf, array('action' => 'phpinfo'));
                 $sOutput = '<iframe width="640" height="480" src="' . $sUrlSelf . '"></iframe>';
                 break;
         }
         if ($sOutput) {
             header('Content-type: text/html; charset=utf-8');
             echo $sOutput;
             exit;
         }
     }
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:35,代码来源:BxDolStudioToolsAudit.php

示例15: __construct

 /**
  * constructor
  */
 protected function __construct($aObject, $oStorage)
 {
     parent::__construct();
     $this->_aObject = $aObject;
     $this->_oStorage = $oStorage;
     $this->_oDb = null;
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:10,代码来源:BxDolTranscoder.php


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