本文整理汇总了PHP中DBModel::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP DBModel::__construct方法的具体用法?PHP DBModel::__construct怎么用?PHP DBModel::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DBModel
的用法示例。
在下文中一共展示了DBModel::__construct方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* constructor
* @param \Nette\Database\Context $database
* @param int $id
* @return void
*/
public function __construct(\Nette\Database\Context $database, $config)
{
parent::__construct($database, $config);
$this->setTable($this->config["table"]);
$this->defaultValues = $this->config["default"];
return;
}
示例2: __construct
protected function __construct($group, $key, $allowed)
{
parent::__construct();
$this->groupID = $group;
$this->keyID = $key;
$this->allowed = $allowed;
}
示例3: __construct
public function __construct($title = null, $author = null, $text = null,
$language = null, $datePosted = null)
{
parent::__construct();
$this->title = $title;
$this->authorID = $author;
$this->text = $text;
$this->language = $language;
$this->datePosted = $datePosted;
}
示例4: __construct
/**
* constructor
* @param \Nette\Database\Context $database
* @param int $id
* @return void
*/
public function __construct(\Nette\Database\Context $database, $config)
{
parent::__construct($database, $config);
$this->setTable($config["table"]);
if (is_array($this->config["default"])) {
foreach ($this->config["default"] as $default) {
$this->defaultValues = $default . "\n";
}
}
return;
}
示例5: __construct
public function __construct()
{
parent::__construct();
}
示例6: __construct
public function __construct($username = null, $email = null)
{
parent::__construct();
$this->username = $username;
$this->email = $email;
}
示例7: __construct
public function __construct($DB_H, $DB_U, $DB_P, $DB_D, $Limits, Catcher &$C = null, Logger &$L = null)
{
parent::__construct($DB_H, $DB_U, $DB_P, $DB_D, $C, $L);
$this->Limits = $Limits;
}
示例8: __construct
/**
* constructor
* @param \Nette\Database\Context $database
* @param int $id
* @return void
*/
public function __construct(\Nette\Database\Context $database, $config)
{
parent::__construct($database, $config);
$this->setTable($this->config["tableName"]);
return;
}
示例9: __construct
public function __construct(&$db)
{
parent::__construct($db);
}
示例10: __construct
/**
* constructor
* @param \Nette\Database\Context $db
* @param type $config
* @return void
*/
public function __construct(\Nette\Database\Context $db, $config = array())
{
parent::__construct($db, $config);
return;
}
示例11: __construct
public function __construct()
{
$this->_table = 'card';
parent::__construct();
}
示例12: __construct
public function __construct($name = null, $description = null, $email = null)
{
parent::__construct();
$this->name = $name;
$this->description = $description;
$this->email = $email;
}
示例13: __construct
public function __construct($userID = null, $groupID = null)
{
parent::__construct();
$this->userID = $userID;
$this->groupID = $groupID;
}
示例14: __construct
public function __construct($name = null)
{
parent::__construct();
$this->name = $name;
}