当前位置: 首页>>代码示例>>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;未经允许,请勿转载。