本文整理汇总了PHP中BitBase::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BitBase::__construct方法的具体用法?PHP BitBase::__construct怎么用?PHP BitBase::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BitBase
的用法示例。
在下文中一共展示了BitBase::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __construct($pUprn)
{
parent::__construct();
if (is_numeric($pUprn)) {
$this->mUprn = $pUprn;
}
}
示例2: array
function __construct()
{
global $gBitDb;
parent::__construct();
$this->currencies = array();
$currencies_query = "SELECT `code` AS `hash_key`, * FROM " . TABLE_CURRENCIES;
$this->currencies = $this->mDb->getAssoc($currencies_query);
}
示例3:
function __construct($pCategoryId = NULL, $pContentId = NULL)
{
parent::__construct();
if (is_numeric($pCategoryId)) {
$this->mCategoryId = $pCategoryId;
$this->load();
}
}
示例4: array
/**
* Initiate class
*
* @return void
*/
function __construct()
{
global $gBitSystem;
parent::__construct();
// table order is important due to constraints
$this->mTables = array('packager_packages', 'packager_versions', 'packager_licenses', 'packager_types', 'packager_changelogs', 'packager_dependencies');
$this->mHost = $gBitSystem->getConfig('packager_rem_host', 'www.bitweaver.org');
}
示例5: __construct
public function __construct($iTopicId = NULL, $iTopicName = NULL)
{
$this->mTopicId = NULL;
parent::__construct();
if ($iTopicId || $iTopicName) {
$this->loadTopic(array('topic_id' => $iTopicId, 'topic_name' => $iTopicName));
}
}
示例6: __construct
public function __construct($iTypeId = NULL)
{
$this->mTypeId = NULL;
parent::__construct();
if ($iTypeId) {
$this->loadType($iTypeId);
}
}
示例7: CommerceShoppingCart
function __construct($pCustomerId)
{
parent::__construct();
$this->mCart = new CommerceShoppingCart();
$this->mCart->load();
if (is_numeric($pCustomerId)) {
$this->mCustomerId = $pCustomerId;
}
}
示例8:
/**
* BitGameSystem During initialisation, be sure to call our base constructors
*
* @param string $pGame
* @access public
* @return void
*/
function __construct($pGameType = NULL)
{
parent::__construct();
if (!empty($pGameType) && ($gameType = $this->isActiveGameType($pGameType))) {
global $gBitSystem;
$game = $this->mGameTypes[$pGameType];
require_once '../' . $gBitSystem->mPackages[$game['package']]['dir'] . "/" . $game['handler_file'];
$gameClass = $game['class'];
$this->mGame = new $gameClass();
}
}
示例9: tra
function __construct()
{
$this->code = 'demo';
parent::__construct();
if (!empty($_GET['main_page'])) {
$this->title = '';
// Payment Module title in Catalog
} else {
$this->title = tra('Demo');
// Payment Module title in Admin
}
$this->description = tra('Demo Fulfillment<br/><a href="' . PRODUCTS_PKG_URL . 'admin/accounting/index.php?fulfillment_code=demo">Accounting</a>');
$this->sort_order = 5;
$this->enabled = defined('MODULE_FULFILLMENT_DEMO_STATUS') && MODULE_FULFILLMENT_DEMO_STATUS == 'True' ? true : false;
$this->mPartsList = array('123' => 'Acme 123 Widget');
}
示例10: __construct
public function __construct($pPidId = NULL, $pConfig = array())
{
if (!empty($pPidId)) {
// set id
$this->mPid = $pPidId;
// log file path
$this->mLogFile = PHPASYNC_TEMP_DIR . '/' . $this->mPid;
}
// set default config values
$this->mConfig = array('append_log' => FALSE, 'max_execution_time' => "1200", 'memory_limit' => '128M', 'no-gzip' => 1, 'zlib.output_compression' => 0, 'ignore_user_abort' => FALSE);
// override default config
if (!empty($pConfig)) {
extract_to($pConfig, $this->mConfig, EXTR_IF_EXISTS);
}
parent::__construct();
}
示例11: tra
function __construct()
{
global $order, $customer_id;
parent::__construct();
@define('MODULE_SHIPPING_FEDEX_WEB_SERVICES_INSURE', 0);
$this->code = "fedexwebservices";
$this->title = tra('FedEx');
$this->description = 'You will need to have registered an account with FedEx and proper approval from FedEx identity to use this module. Please see the README.TXT file for other requirements.';
$this->icon = 'shipping_fedex';
if (MODULE_SHIPPING_FEDEX_WEB_SERVICES_FREE_SHIPPING == 'true' || zen_get_shipping_enabled($this->code)) {
$this->enabled = MODULE_SHIPPING_FEDEX_WEB_SERVICES_STATUS == 'true' ? true : false;
}
if (defined("SHIPPING_ORIGIN_COUNTRY")) {
if ((int) SHIPPING_ORIGIN_COUNTRY > 0) {
$countries_array = zen_get_countries(SHIPPING_ORIGIN_COUNTRY, true);
$this->country = $countries_array['countries_iso_code_2'];
} else {
$this->country = SHIPPING_ORIGIN_COUNTRY;
}
} else {
$this->country = STORE_ORIGIN_COUNTRY;
}
if ($this->enabled == true && (int) MODULE_SHIPPING_FEDEX_WEB_SERVICES_ZONE > 0) {
$this->sort_order = MODULE_SHIPPING_FEDEX_WEB_SERVICES_SORT_ORDER;
$this->tax_class = MODULE_SHIPPING_FEDEX_WEB_SERVICES_TAX_CLASS;
$check_flag = false;
$check = $this->mDb->query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_FEDEX_WEB_SERVICES_ZONE . "' and zone_country_id = '" . $order->delivery['country']['countries_id'] . "' order by zone_id");
while (!$check->EOF) {
if ($check->fields['zone_id'] < 1) {
$check_flag = true;
break;
} elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
$check_flag = true;
break;
}
$check->MoveNext();
}
if ($check_flag == false) {
$this->enabled = false;
}
}
}
示例12:
function __construct($pLuceneId = NULL)
{
parent::__construct();
$this->mLuceneId = $pLuceneId;
}
示例13:
/**
* Initialisation of this class
*/
function __construct()
{
parent::__construct();
$this->load();
}
示例14: BitDate
/**
* initiate class
* @return none
* @access public
**/
function __construct()
{
parent::__construct();
$this->mDate = new BitDate(0);
}
示例15: TikiWikiParser
function TikiWikiParser()
{
parent::__construct();
}