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


PHP BitBase::__construct方法代码示例

本文整理汇总了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;
     }
 }
开发者ID:bitweaver,项目名称:nlpg,代码行数:7,代码来源:NlpgProperty.php

示例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);
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:8,代码来源:currencies.php

示例3:

 function __construct($pCategoryId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     if (is_numeric($pCategoryId)) {
         $this->mCategoryId = $pCategoryId;
         $this->load();
     }
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:8,代码来源:CommerceCategory.php

示例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');
 }
开发者ID:bitweaver,项目名称:packager,代码行数:13,代码来源:PackagerBase.php

示例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));
     }
 }
开发者ID:kailIII,项目名称:articles,代码行数:8,代码来源:BitArticleTopic.php

示例6: __construct

 public function __construct($iTypeId = NULL)
 {
     $this->mTypeId = NULL;
     parent::__construct();
     if ($iTypeId) {
         $this->loadType($iTypeId);
     }
 }
开发者ID:kailIII,项目名称:articles,代码行数:8,代码来源:BitArticleType.php

示例7: CommerceShoppingCart

 function __construct($pCustomerId)
 {
     parent::__construct();
     $this->mCart = new CommerceShoppingCart();
     $this->mCart->load();
     if (is_numeric($pCustomerId)) {
         $this->mCustomerId = $pCustomerId;
     }
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:9,代码来源:CommerceCustomer.php

示例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();
     }
 }
开发者ID:bitweaver,项目名称:games,代码行数:18,代码来源:BitGameSystem.php

示例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');
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:16,代码来源:demo.php

示例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();
 }
开发者ID:shen0834,项目名称:util,代码行数:16,代码来源:PHPAsync.php

示例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;
         }
     }
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:42,代码来源:fedexwebservices.php

示例12:

 function __construct($pLuceneId = NULL)
 {
     parent::__construct();
     $this->mLuceneId = $pLuceneId;
 }
开发者ID:bitweaver,项目名称:lucene,代码行数:5,代码来源:BitLucene.php

示例13:

 /**
  * Initialisation of this class
  */
 function __construct()
 {
     parent::__construct();
     $this->load();
 }
开发者ID:bitweaver,项目名称:multisites,代码行数:8,代码来源:Multisites.php

示例14: BitDate

 /**
  * initiate class
  * @return none
  * @access public
  **/
 function __construct()
 {
     parent::__construct();
     $this->mDate = new BitDate(0);
 }
开发者ID:bitweaver,项目名称:chatterbox,代码行数:10,代码来源:Chatterbox.php

示例15: TikiWikiParser

 function TikiWikiParser()
 {
     parent::__construct();
 }
开发者ID:kailIII,项目名称:liberty,代码行数:4,代码来源:format.tikiwiki.php


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