本文整理汇总了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();
}
示例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;
}
示例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();
}
示例4: __construct
public function __construct()
{
parent::__construct();
$user = Model_User::create();
$udata = (object) $user->getAuth();
$this->userId = $udata->user_id;
$this->userRole = $udata->role;
}
示例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;*/
}
示例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;
}
示例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'));
}
示例8: __construct
public function __construct()
{
parent::__construct();
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->_table = $this->_em->getRepository('Shipments');
}
示例10: __construct
public function __construct($db, $user_id = 0)
{
parent::__construct($db);
$this->user_id = $user_id;
}
示例11: __construct
public function __construct($db)
{
parent::__construct($db);
}
示例12: __construct
public function __construct($db)
{
parent::__construct($db);
$this->materialtype = 1;
}
示例13:
function __construct()
{
parent::__construct();
$this->attachObserver(Model_ControlWork::create());
}
示例14: __construct
public function __construct($db, $shopcoinsorder = 0)
{
parent::__construct($db);
$this->shopcoinsorder = $shopcoinsorder;
}
示例15: __construct
public function __construct($db, $shopcoinsorder = 0, $user_id = 0)
{
parent::__construct($db);
$this->shopcoinsorder = $shopcoinsorder;
$this->user_id = $user_id;
}