本文整理汇总了PHP中BxDolDb::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BxDolDb::__construct方法的具体用法?PHP BxDolDb::__construct怎么用?PHP BxDolDb::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BxDolDb
的用法示例。
在下文中一共展示了BxDolDb::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($aObject)
{
parent::__construct();
$this->_aObject = $aObject;
$this->_sTable = $aObject['table'];
$this->_sType = $aObject['type'];
}
示例2:
function __construct(&$aSystem)
{
$this->_aSystem =& $aSystem;
$this->_sTable = $this->_aSystem['table_cmts'];
$this->_sTableTrack = $this->_aSystem['table_track'];
parent::__construct();
}
示例3: __construct
public 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();
}
示例4:
function __construct($oConfig = null)
{
parent::__construct();
if (is_a($oConfig, 'BxDolConfig')) {
$this->_sPrefix = $oConfig->getDbPrefix();
}
}
示例5: __construct
public function __construct($aObject, $bUseQueue = false)
{
parent::__construct();
$this->_aObject = $aObject;
$this->_sTableQueue = $bUseQueue ? self::TABLE_QUEUE : '';
$this->_sTableFiles = '`sys_transcoder_images_files`';
$this->_sTableFilters = '`sys_transcoder_filters`';
$this->_sHandlerPrefix = 'sys_image_transcoder_';
}
示例6: __construct
public function __construct(&$oModule)
{
parent::__construct();
$this->_oModule = $oModule;
$aSystem = $this->_oModule->getSystemInfo();
$this->_sTableTrack = $aSystem['table_track'];
$this->_sTriggerTable = $aSystem['trigger_table'];
$this->_sTriggerFieldId = $aSystem['trigger_field_id'];
$this->_sTriggerFieldCount = $aSystem['trigger_field_count'];
$this->_iPeriod = (int) $aSystem['period'];
}
示例7:
function __construct(&$oMain)
{
$this->_oMain = $oMain;
$aSystem = $this->_oMain->getSystemInfo();
$this->_sTable = $aSystem['table'];
$this->_sTriggerTable = $aSystem['trigger_table'];
$this->_sTriggerFieldId = $aSystem['trigger_field_id'];
$this->_sTriggerFieldTitle = $aSystem['trigger_field_title'];
$this->_sTriggerFieldComments = $aSystem['trigger_field_comments'];
$this->_sTableImages = $aSystem['table_images'];
$this->_sTableImages2Entries = $aSystem['table_images2entries'];
parent::__construct();
}
示例8: __construct
public function __construct(&$oModule)
{
parent::__construct();
$this->_oModule = $oModule;
$aSystem = $this->_oModule->getSystemInfo();
$this->_sTable = $aSystem['table_main'];
$this->_sTableTrack = $aSystem['table_track'];
$this->_sTriggerTable = $aSystem['trigger_table'];
$this->_sTriggerFieldId = $aSystem['trigger_field_id'];
$this->_sTriggerFieldRate = $aSystem['trigger_field_rate'];
$this->_sTriggerFieldCount = $aSystem['trigger_field_count'];
$this->_iPostTimeout = (int) $aSystem['post_timeout'];
}
示例9:
/**
* constructor
*/
function __construct($sTable = '', $sFieldId = '', $sFieldOwnerId = '')
{
parent::__construct();
$this->_sTable = $sTable;
$this->_sFieldId = $sFieldId;
$this->_sFieldOwnerId = $sFieldOwnerId;
$this->_sGroupCache = 'sys_ps_group_';
$this->_sGroupsByOwnersCache = 'sys_ps_groups_owners_';
$this->_sGroupMembersCache = 'sys_ps_group_members_';
$this->_sObjectCache = 'sys_ps_object_';
$this->_sActionCache = 'sys_ps_action_';
$this->_sActionDefaultCache = 'sys_ps_action_default_';
}
示例10: __construct
public function __construct($aObject = array())
{
parent::__construct();
$this->_aObject = $aObject;
if (!empty($this->_aObject)) {
$this->_sTable = $this->_aObject['table'];
$this->_sFieldId = $this->_aObject['table_field_id'];
$this->_sFieldOwnerId = $this->_aObject['table_field_author'];
}
$this->_sCachePrivacyObject = 'sys_privacy_object_';
$this->_sCachePrivacyObjectDefault = 'sys_privacy_object_default_';
$this->_sCacheGroup = 'sys_privacy_group_';
$this->_sCacheGroupFriends = 'sys_privacy_group_friends_';
$this->_sCacheGroupsActVis = 'sys_privacy_group_act_vis';
$this->_sCacheTestedObject = 'sys_privacy_tested_object_';
}
示例11:
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();
if (getParam('sys_db_cache_enable')) {
$oCache = $this->getDbCacheObject();
$sCacheKey = $this->genDbCacheKey('sys_permalinks');
$aPermalinksData = $oCache->getData($sCacheKey);
if (null === $aPermalinksData) {
$aPermalinksData = $this->getPermalinksData();
$oCache->setData($sCacheKey, $aPermalinksData);
}
} else {
$aPermalinksData = $this->getPermalinksData();
}
$this->aLinksStandard = $aPermalinksData['standard'];
$this->aLinksPermalink = $aPermalinksData['permalink'];
$this->aPrefixesStandard = $aPermalinksData['prefixes_standard'];
$this->aPrefixesPermalink = $aPermalinksData['prefixes_permalink'];
}
示例12:
/**
* constructor
*/
function __construct(&$oSubscription)
{
parent::__construct();
$this->_oSubscription =& $oSubscription;
$this->_sPrefix = 'sys_sbs_';
}
示例13: __construct
public function __construct($aSystem)
{
parent::__construct();
$this->_aSystem = $aSystem;
}
示例14:
function __construct(&$oConfig)
{
parent::__construct();
$this->_oConfig = $oConfig;
}
示例15: array
function __construct()
{
parent::__construct();
$this->_sDefVersion = '0.0.0';
$this->_aCheckPathes = array();
}