function __construct($pUprn) { parent::__construct(); if (is_numeric($pUprn)) { $this->mUprn = $pUprn; } }
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); }
function __construct($pCategoryId = NULL, $pContentId = NULL) { parent::__construct(); if (is_numeric($pCategoryId)) { $this->mCategoryId = $pCategoryId; $this->load(); } }
/** * 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'); }
public function __construct($iTopicId = NULL, $iTopicName = NULL) { $this->mTopicId = NULL; parent::__construct(); if ($iTopicId || $iTopicName) { $this->loadTopic(array('topic_id' => $iTopicId, 'topic_name' => $iTopicName)); } }
public function __construct($iTypeId = NULL) { $this->mTypeId = NULL; parent::__construct(); if ($iTypeId) { $this->loadType($iTypeId); } }
function __construct($pCustomerId) { parent::__construct(); $this->mCart = new CommerceShoppingCart(); $this->mCart->load(); if (is_numeric($pCustomerId)) { $this->mCustomerId = $pCustomerId; } }
/** * 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(); } }
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'); }
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(); }
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; } } }
function __construct($pLuceneId = NULL) { parent::__construct(); $this->mLuceneId = $pLuceneId; }
/** * Initialisation of this class */ function __construct() { parent::__construct(); $this->load(); }
/** * initiate class * @return none * @access public **/ function __construct() { parent::__construct(); $this->mDate = new BitDate(0); }
function TikiWikiParser() { parent::__construct(); }
function UserMenuLib() { parent::__construct(); }
function __construct() { parent::__construct(); $this->mGameSettings = BitGameSystem::loadGameTypeSettings($this->getGameType()); $this->mGameTitle = $this->getGameSetting('title'); }
function __construct() { parent::__construct(); }
function Observable() { parent::__construct(); }
function __construct() { parent::__construct(); $this->mCache = new BitCache('shoutbox'); }
function __construct($pFeedId = NULL) { parent::__construct(); $this->mFeedId = (int) $pFeedId; }
function __construct() { parent::__construct(); $this->wordlist_cache = array(); // for caching queries to the LRU-cache-list. }
function __construct($pCouponId = NULL) { $this->mCouponId = $pCouponId; parent::__construct(); }
/** * Initiate class * * @access public * @return TRUE on success, FALSE on failure - mErrors will contain reason for failure */ function BitLinks() { parent::__construct(); global $gBitSystem; if ($gBitSystem->getConfig('wiki_page_regex', 'strict') == 'strict') { $this->mWikiWordRegex = '([A-Za-z0-9_])([\'\\.: A-Za-z0-9_\\-])*([\\.:A-Za-z0-9_])'; } elseif ($gBitSystem->getConfig('wiki_page_regex', 'strict') == 'full') { $this->mWikiWordRegex = '([A-Za-z0-9_]|[\\x80-\\xFF])([\'\\.: A-Za-z0-9_\\-]|[\\x80-\\xFF])*([\\.:A-Za-z0-9_]|[\\x80-\\xFF])'; } else { // This is just evil. The middle section means "anything, as long // as it's not a | and isn't followed by ))". -rlpowell $this->mWikiWordRegex = '([^|\\(\\)])([^|](?!\\)\\)))*?([^|\\(\\)])'; } // append anchor to regex $this->mWikiWordRegex .= "(#\\w+)?"; }
/** * @param int $pId database Id of existing object of this type */ public function __construct($pId = NULL) { parent::__construct(get_class($this) . $pId); // Make up a 'name' for inherited name attribute @$this->load($pId); }