當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Basic::__construct方法代碼示例

本文整理匯總了PHP中Basic::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Basic::__construct方法的具體用法?PHP Basic::__construct怎麽用?PHP Basic::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Basic的用法示例。


在下文中一共展示了Basic::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /** Constructor
  * 
  * @param array $conf
  */
 public function __construct($conf)
 {
     parent::__construct($conf);
     Trace::add_trace('construct class', __METHOD__);
     $this->author = isset(self::$conf['general']['author']) ? self::$conf['general']['author'] : '';
     $this->version = isset(self::$conf['general']['app_version']) ? self::$conf['general']['app_version'] : '';
 }
開發者ID:shlomohass,項目名稱:MidataControl,代碼行數:11,代碼來源:Page.class.php

示例2:

 function __construct()
 {
     $this->table = new fpp_client_Model();
     $this->id_client = (int) @$_SESSION['conf']['client']['id'];
     self::$id_cliente = $this->id_client;
     parent::__construct();
 }
開發者ID:brojasmeneses,項目名稱:floreriarosabel,代碼行數:7,代碼來源:Client.php

示例3:

 function __construct()
 {
     parent::__construct();
     $this->load_report_beans();
     require_once 'modules/AOW_WorkFlow/aow_utils.php';
     require_once 'modules/AOR_Reports/aor_utils.php';
 }
開發者ID:auf,項目名稱:crm_auf_org,代碼行數:7,代碼來源:AOR_Report.php

示例4: __construct

 public function __construct($conf)
 {
     parent::__construct($conf);
     Trace::add_trace('construct class', __METHOD__);
     $this->user_ip = $this->get_ip_address();
     $this->is_loged();
 }
開發者ID:shlomohass,項目名稱:MidataControl,代碼行數:7,代碼來源:User.class.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     // initialize currency
     $currency = SugarCurrency::getBaseCurrency();
     $this->currency_id = $currency->id;
     $this->base_rate = $currency->conversion_rate;
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:8,代碼來源:Sale.php

示例6: __construct

 public function __construct($init = true)
 {
     parent::__construct();
     if ($init) {
         $this->load_flow_beans();
         require_once 'modules/AOW_WorkFlow/aow_utils.php';
     }
 }
開發者ID:sacredwebsite,項目名稱:SuiteCRM,代碼行數:8,代碼來源:AOW_WorkFlow.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     global $sugar_config;
     if (!$sugar_config['require_accounts']) {
         unset($this->required_fields['account_name']);
     }
     $this->setupCustomFields('Cases');
     foreach ($this->field_defs as $name => $field) {
         $this->field_name_map[$name] = $field;
     }
 }
開發者ID:butschster,項目名稱:sugarcrm_dev,代碼行數:12,代碼來源:Case.php

示例8: explode

 function __construct()
 {
     $this->home_category = (int) Kohana::config("core.index_category");
     $this->separator_price = Kohana::config("core.separator_price");
     $this->max_items_per_category = (int) Kohana::config("core.category_max_items");
     $this->table = new fpp_category_Model();
     $arrayg = explode(",", $this->table->group_category);
     foreach ($arrayg as $key => $value) {
         $this->metacategories[$value] = $value;
     }
     $this->i18n->category = 'category';
     $this->i18n->pagination = 'pagina';
     parent::__construct();
 }
開發者ID:brojasmeneses,項目名稱:floreriarosabel,代碼行數:14,代碼來源:Category.php

示例9:

 function __construct()
 {
     $this->table = new fpp_product_Model();
     parent::__construct();
 }
開發者ID:brojasmeneses,項目名稱:floreriarosabel,代碼行數:5,代碼來源:Cart.php

示例10: __construct

 /**
  * Constructor for the Activity bean.
  *
  * Override SugarBean's constructor so that we can create a comment bean as
  * a property of this object.
  */
 public function __construct()
 {
     parent::__construct();
     $this->last_comment_bean = BeanFactory::getBean('Comments');
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:11,代碼來源:Activity.php

示例11: __construct

 /**
  * Job constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->disable_row_level_security = true;
     if (!empty($GLOBALS['sugar_config']['jobs']['min_retry_interval'])) {
         $this->min_interval = $GLOBALS['sugar_config']['jobs']['min_retry_interval'];
     }
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:11,代碼來源:SchedulersJob.php

示例12: __construct

 public function __construct($type = "created")
 {
     parent::__construct('easy_audit.doctrine.entity.' . $type);
 }
開發者ID:xiidea,項目名稱:easy-audit,代碼行數:4,代碼來源:EntityEvent.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->emailAddress = BeanFactory::getBean('EmailAddresses');
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:5,代碼來源:Person.php

示例14: __construct

 public function __construct($db, $id = 0)
 {
     parent::__construct($db, $id);
     $this->mainDB = new DBAdapter2(array('host' => MAIN_HOST, 'username' => MAIN_USERNAME, 'password' => MAIN_PASSWORD, 'schema' => MAIN_SCHEMA));
 }
開發者ID:sergrin,項目名稱:crawlers-il,代碼行數:5,代碼來源:GoogleAdGroup.php

示例15: __construct

 /**
  * Job constructor.
  */
 public function __construct()
 {
     parent::__construct();
     if (!empty($GLOBALS['sugar_config']['jobs']['min_retry_interval'])) {
         $this->min_interval = $GLOBALS['sugar_config']['jobs']['min_retry_interval'];
     }
 }
開發者ID:butschster,項目名稱:sugarcrm_dev,代碼行數:10,代碼來源:SchedulersJob.php


注:本文中的Basic::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。