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


PHP DataProvider::__construct方法代码示例

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


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

示例1: __construct

 /**
  * User constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->name = "";
     $this->table = ARCDBPREFIX . "companies";
     $this->map = ["id" => "id", "name" => "name"];
     $this->columns = ["id", "name"];
 }
开发者ID:DeltaWolf7,项目名称:Arc,代码行数:11,代码来源:Company.class.php

示例2: __construct

 /**
  * UserPermission constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->groupid = 0;
     $this->permission = "";
     $this->table = ARCDBPREFIX . 'user_permissions';
     $this->map = ["id" => "id", "groupid" => "groupid", "permission" => "permission"];
     $this->columns = ['id', 'groupid', 'permission'];
 }
开发者ID:DeltaWolf7,项目名称:Arc,代码行数:12,代码来源:UserPermission.class.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->event = date("y-m-d H:i:s");
     $this->message = "";
     $this->table = ARCDBPREFIX . 'logs';
     $this->map = ["id" => "id", "type" => "type", "module" => "module", "event" => "event", "message" => "message"];
     $this->columns = ['id', 'type', 'module', 'event', 'message'];
 }
开发者ID:DeltaWolf7,项目名称:Arc,代码行数:9,代码来源:Log.class.php

示例4: __construct

 /**
  * UserGroup constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->name = "";
     $this->description = "";
     $this->table = ARCDBPREFIX . 'user_groups';
     $this->map = ["id" => "id", "name" => "name", "description" => "description"];
     $this->columns = ['id', 'name', 'description'];
 }
开发者ID:DeltaWolf7,项目名称:Arc,代码行数:12,代码来源:UserGroup.class.php

示例5: __construct

 /**
  * SystemSetting constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->key = "";
     $this->value = "";
     $this->userid = 0;
     $this->table = ARCDBPREFIX . "system_settings";
     $this->map = ["id" => "id", "key" => "skey", "value" => "svalue", "userid" => "userid"];
     $this->columns = ["id", "skey", "svalue", "userid"];
 }
开发者ID:DeltaWolf7,项目名称:Arc,代码行数:13,代码来源:SystemSetting.class.php

示例6: __construct

 public function __construct(SkyBlock $plugin, $cacheSize = 0)
 {
     parent::__construct($plugin, $cacheSize);
     $this->db = new SQLite3($this->plugin->getDataFolder() . "plots.db");
     $this->db->exec("CREATE TABLE IF NOT EXISTS plots\n            (id INTEGER PRIMARY KEY AUTOINCREMENT, level TEXT, X INTEGER, Z INTEGER, name TEXT,\n             owner TEXT, helpers TEXT, biome TEXT)");
     $this->sqlGetPlot = $this->db->prepare("SELECT id, name, owner, helpers, biome FROM plots WHERE level = :level AND X = :X AND Z = :Z");
     $this->sqlSavePlot = $this->db->prepare("INSERT OR REPLACE INTO plots (id, level, X, Z, name, owner, helpers, biome) VALUES\n            ((select id from plots where level = :level AND X = :X AND Z = :Z),\n             :level, :X, :Z, :name, :owner, :helpers, :biome);");
     $this->sqlSavePlotById = $this->db->prepare("UPDATE plots SET name = :name, owner = :owner, helpers = :helpers, biome = :biome WHERE id = :id");
     $this->sqlRemovePlot = $this->db->prepare("DELETE FROM plots WHERE level = :level AND X = :X AND Z = :Z");
     $this->sqlRemovePlotById = $this->db->prepare("DELETE FROM plots WHERE id = :id");
     $this->sqlGetPlotsByOwner = $this->db->prepare("SELECT * FROM plots WHERE owner = :owner");
     $this->sqlGetPlotsByOwnerAndLevel = $this->db->prepare("SELECT * FROM plots WHERE owner = :owner AND level = :level");
     $this->sqlGetExistingXZ = $this->db->prepare("SELECT X, Z FROM plots WHERE (\n                level = :level\n                AND (\n                    (abs(X) == :number AND abs(Z) <= :number) OR\n                    (abs(Z) == :number AND abs(X) <= :number)\n                )\n            )");
 }
开发者ID:RedstoneAlmeida,项目名称:SkyBlockPE,代码行数:14,代码来源:SQLiteDataProvider.php

示例7: __construct

 /**
  * User constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->firstname = "";
     $this->lastname = "";
     $this->email = "";
     $this->enabled = true;
     $this->passwordhash = "";
     $this->groups = "[\"Users\"]";
     $this->company = "[]";
     $this->created = date("y-m-d H:i:s");
     $this->table = ARCDBPREFIX . "users";
     $this->map = ["id" => "id", "firstname" => "firstname", "lastname" => "lastname", "email" => "email", "passwordhash" => "passwordhash", "created" => "created", "enabled" => "enabled", "groups" => "groups", "company" => "company"];
     $this->columns = ["id", "firstname", "lastname", "email", "passwordhash", "created", "enabled", "groups", "company"];
 }
开发者ID:DeltaWolf7,项目名称:Arc,代码行数:18,代码来源:User.class.php

示例8: __construct

 /**
  * Page constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->title = "";
     $this->content = "";
     $this->metadescription = "";
     $this->metakeywords = "";
     $this->metatitle = "";
     $this->seourl = "";
     $this->sortorder = 0;
     $this->iconclass = "";
     $this->showtitle = true;
     $this->hideonlogin = false;
     $this->hidefrommenu = false;
     $this->theme = "none";
     $this->table = ARCDBPREFIX . "pages";
     $this->map = ["id" => "id", "title" => "title", "content" => "content", "seourl" => "seourl", "metadescription" => "metadescription", "metakeywords" => "metakeywords", "sortorder" => "sortorder", "iconclass" => "iconclass", "showtitle" => "showtitle", "hideonlogin" => "hideonlogin", "hidefrommenu" => "hidefrommenu", "theme" => "theme"];
     $this->columns = ["id", "title", "content", "seourl", "metadescription", "metakeywords", "sortorder", "iconclass", "showtitle", "hideonlogin", "hidefrommenu", "theme"];
 }
开发者ID:DeltaWolf7,项目名称:Arc,代码行数:22,代码来源:Page.class.php


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