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


PHP DBModel::__construct方法代碼示例

本文整理匯總了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;
 }
開發者ID:OCC2,項目名稱:occ2pacs,代碼行數:13,代碼來源:PacsConfig.php

示例2: __construct

	protected function __construct($group, $key, $allowed)
	{
		parent::__construct();
		$this->groupID = $group;
		$this->keyID = $key;
		$this->allowed = $allowed;
	}
開發者ID:nathansamson,項目名稱:CoOrg,代碼行數:7,代碼來源:acl.model.php

示例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;
	}
開發者ID:nathansamson,項目名稱:CoOrg,代碼行數:10,代碼來源:blog.model.php

示例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;
 }
開發者ID:OCC2,項目名稱:occ2pacs,代碼行數:17,代碼來源:SopClass.php

示例5: __construct

	public function __construct()
	{
		parent::__construct();
	}
開發者ID:nathansamson,項目名稱:CoOrg,代碼行數:4,代碼來源:userprofile.model.php

示例6: __construct

	public function __construct($username = null, $email = null)
	{
		parent::__construct();
		$this->username = $username;
		$this->email = $email;
	}
開發者ID:nathansamson,項目名稱:CoOrg,代碼行數:6,代碼來源:user.model.php

示例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;
 }
開發者ID:abazad,項目名稱:WhatsappUploader,代碼行數:5,代碼來源:DBController.php

示例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;
 }
開發者ID:OCC2,項目名稱:occ2pacs,代碼行數:12,代碼來源:Useradmin.php

示例9: __construct

 public function __construct(&$db)
 {
     parent::__construct($db);
 }
開發者ID:andreyyec,項目名稱:shandLove,代碼行數:4,代碼來源:model.php

示例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;
 }
開發者ID:OCC2,項目名稱:occ2pacs,代碼行數:11,代碼來源:BaseModel.php

示例11: __construct

 public function __construct()
 {
     $this->_table = 'card';
     parent::__construct();
 }
開發者ID:purefan,項目名稱:jujube,代碼行數:5,代碼來源:card.model.php

示例12: __construct

	public function __construct($name = null, $description = null, $email = null)
	{
		parent::__construct();
		$this->name = $name;
		$this->description = $description;
		$this->email = $email;
	}
開發者ID:nathansamson,項目名稱:CoOrg,代碼行數:7,代碼來源:model.Test.php

示例13: __construct

	public function __construct($userID = null, $groupID = null)
	{
		parent::__construct();
		$this->userID = $userID;
		$this->groupID = $groupID;
	}
開發者ID:nathansamson,項目名稱:CoOrg,代碼行數:6,代碼來源:usergroupmember.model.php

示例14: __construct

	public function __construct($name = null)
	{
		parent::__construct();
		$this->name = $name;
	}
開發者ID:nathansamson,項目名稱:CoOrg,代碼行數:5,代碼來源:usergroup.model.php


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