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