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


PHP Model_Base::__construct方法代码示例

本文整理汇总了PHP中Model_Base::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Model_Base::__construct方法的具体用法?PHP Model_Base::__construct怎么用?PHP Model_Base::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Model_Base的用法示例。


在下文中一共展示了Model_Base::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($table = NULL, $db_zone_name = NULL)
 {
     parent::__construct();
     $this->_table = $table;
     $this->_db_zone_name = $db_zone_name;
     $this->_sql_maker = Lib_PDOSqlMaker::getInstance();
 }
开发者ID:godruoyi,项目名称:portal,代码行数:7,代码来源:Db.class.php

示例2:

 function __construct($message = '', $is_success = false, $model = null, $models = null)
 {
     parent::__construct();
     $this->Message = $message;
     $this->IsSuccess = $is_success;
     $this->Model = $model;
     $this->Models = $models;
 }
开发者ID:konzuk,项目名称:BIS_Web_School_Version1,代码行数:8,代码来源:message_result.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     //$this->storage = new Storage ('../private/materials');
     $this->storage = Resources::getInstance()->materials_storage;
     $this->attachObserver(Model_ControlWork::create());
     $this->_checkRightsObject = Model_CheckRigths::create();
 }
开发者ID:vyrus,项目名称:remote-edu,代码行数:8,代码来源:Materials.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $user = Model_User::create();
     $udata = (object) $user->getAuth();
     $this->userId = $udata->user_id;
     $this->userRole = $udata->role;
 }
开发者ID:vyrus,项目名称:remote-edu,代码行数:8,代码来源:Messages.php

示例5:

 function __construct($db, $user_id = 0)
 {
     parent::__construct($db, $user_id);
     /*$db['driver_options']  = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES "utf8"');
     		$this->db = Zend_Db::factory('PDO_MYSQL', $db);
     	 	$this->db->query("SET names 'utf8'");	 
     	 	$this->user_id = $user_id;*/
 }
开发者ID:nellka,项目名称:numiz-new,代码行数:8,代码来源:forum.php

示例6: __construct

 public function __construct($table = NULL, $db_zone_name = NULL, $data_type = NULL, $debug = FALSE)
 {
     parent::__construct();
     $this->_table = $table;
     $this->_debug = $debug;
     $this->_db_zone_name = $db_zone_name;
     $this->_sql_maker = Lib_PDOPgsqlMaker::getInstance();
     $this->_data_type = $data_type;
 }
开发者ID:godruoyi,项目名称:portal,代码行数:9,代码来源:Pgdb.class.php

示例7: __construct

 public function __construct($db, $user_id = 0, $nocheck = 0)
 {
     parent::__construct($db);
     $this->user_id = $user_id;
     $this->shortshow = 0;
     $this->nocheck = $nocheck;
     $this->materialtype = 1;
     $this->mycoins = 0;
     $this->categoty_type = self::BASE;
     $this->arraynewcoins = array(1 => date('Y') - 2, 2 => date('Y') - 1, 3 => date('Y'));
 }
开发者ID:nellka,项目名称:numiz-new,代码行数:11,代码来源:shopcoins.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:baowzh,项目名称:renfangbaosong,代码行数:4,代码来源:Atype.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_table = $this->_em->getRepository('Shipments');
 }
开发者ID:uppaljs,项目名称:pakistan-vlmis-v2,代码行数:5,代码来源:Shipments.php

示例10: __construct

 public function __construct($db, $user_id = 0)
 {
     parent::__construct($db);
     $this->user_id = $user_id;
 }
开发者ID:nellka,项目名称:numiz-new,代码行数:5,代码来源:subscribe.php

示例11: __construct

 public function __construct($db)
 {
     parent::__construct($db);
 }
开发者ID:nellka,项目名称:numiz-new,代码行数:4,代码来源:price.php

示例12: __construct

 public function __construct($db)
 {
     parent::__construct($db);
     $this->materialtype = 1;
 }
开发者ID:nellka,项目名称:numiz-new,代码行数:5,代码来源:catalognew.php

示例13:

 function __construct()
 {
     parent::__construct();
     $this->attachObserver(Model_ControlWork::create());
 }
开发者ID:vyrus,项目名称:remote-edu,代码行数:5,代码来源:Test.php

示例14: __construct

 public function __construct($db, $shopcoinsorder = 0)
 {
     parent::__construct($db);
     $this->shopcoinsorder = $shopcoinsorder;
 }
开发者ID:nellka,项目名称:numiz-new,代码行数:5,代码来源:orderdetails.php

示例15: __construct

 public function __construct($db, $shopcoinsorder = 0, $user_id = 0)
 {
     parent::__construct($db);
     $this->shopcoinsorder = $shopcoinsorder;
     $this->user_id = $user_id;
 }
开发者ID:nellka,项目名称:numiz-new,代码行数:6,代码来源:order.php


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