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


PHP Resource::__construct方法代碼示例

本文整理匯總了PHP中Resource::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Resource::__construct方法的具體用法?PHP Resource::__construct怎麽用?PHP Resource::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Resource的用法示例。


在下文中一共展示了Resource::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 /**
  * Create a new LinkCategory
  * @param int $id
  * @param string $title
  * @param string $description
  */
 function __construct($id, $title, $description, $display_order)
 {
     parent::__construct($id, RESOURCE_LINKCATEGORY);
     $this->title = $title;
     $this->description = $description;
     $this->display_order = $display_order;
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:13,代碼來源:LinkCategory.class.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->title = new \phpws2\Variable\TextOnly(null, 'title');
     $this->title->allowEmpty(false);
     $this->active = new \phpws2\Variable\Bool(true, 'active');
 }
開發者ID:AppStateESS,項目名稱:tailgate,代碼行數:7,代碼來源:Lot.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->display_name = new \Variable\TextOnly(null, 'display_name');
     $this->description = new \Variable\TextOnly(null, 'description');
     $this->active = new \Variable\Integer(1, 'active');
 }
開發者ID:AppStateESS,項目名稱:systemsinventory,代碼行數:7,代碼來源:Location.php

示例4: __construct

 public function __construct()
 {
     parent::__construct('token');
     $this->reg_method('GET', 'GET_token');
     $this->reg_json_method('POST', 'POST_token', ['password' => 's']);
     $this->reg_json_method('DELETE', 'DELETE_token', ['token' => 's']);
 }
開發者ID:lv-zheng,項目名稱:phphw,代碼行數:7,代碼來源:user_token.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->device_id = new \Variable\Integer(0, 'device_id');
     $this->primary_monitor = new \Variable\TextOnly(null, 'primary_monitor');
     $this->primary_monitor->allowNull(true);
     $this->secondary_monitor = new \Variable\TextOnly(null, 'secondary_monitor');
     $this->secondary_monitor->allowNull(true);
     $this->video_card = new \Variable\TextOnly(null, 'video_card');
     $this->video_card->allowNull(true);
     $this->os = new \Variable\TextOnly(null, 'os');
     $this->os->allowNull(true);
     $this->server_type = new \Variable\TextOnly(null, 'server_type');
     $this->server_type->allowNull(true);
     $this->system_usage = new \Variable\Integer(0, 'system_usage');
     $this->system_usage->allowNull(true);
     $this->battery_backup = new \Variable\Bool(false, 'battery_backup');
     $this->redundant_backup = new \Variable\Bool(false, 'redundant_backup');
     $this->rotation = new \Variable\Bool(false, 'rotation');
     $this->stand = new \Variable\Bool(false, 'stand');
     $this->touch_screen = new \Variable\Bool(false, 'touch_screen');
     $this->dual_monitor = new \Variable\Bool(false, 'dual_monitor');
     $this->check_in = new \Variable\Bool(false, 'check_in');
     $this->smart_room = new \Variable\Bool(false, 'smart_room');
 }
開發者ID:AppStateESS,項目名稱:systemsinventory,代碼行數:25,代碼來源:PC.php

示例6: __construct

 /**
  * Create a new course description
  * @param int $id
  * @param string $title
  * @param string $content
  */
 public function __construct($id, $title, $content, $description_type)
 {
     parent::__construct($id, RESOURCE_COURSEDESCRIPTION);
     $this->title = $title;
     $this->content = $content;
     $this->description_type = $description_type;
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:13,代碼來源:CourseDescription.class.php

示例7: __construct

 /**
  * Create a new Glossary
  * @param int $id
  * @param string $name
  * @param string $description
  * @param int $display_order
  */
 public function __construct($id, $name, $description, $display_order)
 {
     parent::__construct($id, RESOURCE_GLOSSARY);
     $this->glossary_id = $id;
     $this->name = $name;
     $this->description = $description;
     $this->display_order = $display_order;
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:15,代碼來源:Glossary.class.php

示例8: __construct

 public function __construct($clientId, $body = false)
 {
     if ($body && $body->data) {
         $this->data = $body->data;
         unset($body->data);
     }
     parent::__construct($clientId, $body);
 }
開發者ID:liubo2055,項目名稱:gdapi-php,代碼行數:8,代碼來源:Collection.php

示例9: __construct

 /**
  * Create a new SurveyInvitation
  * @param	int	 $id
  * @param string $code
  * @param string $user
  * @param string $invitation_code
  * @param string $invitation_date
  * @param string $reminder_date
  */
 public function __construct($id, $code, $user, $invitation_code, $invitation_date, $reminder_date)
 {
     parent::__construct($id, RESOURCE_SURVEYINVITATION);
     $this->code = $code;
     $this->user = $user;
     $this->invitation_code = $invitation_code;
     $this->invitation_date = $invitation_date;
     $this->reminder_date = $reminder_date;
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:18,代碼來源:SurveyInvitation.class.php

示例10: __construct

 /**
  * Create a new Link
  * @param int $id The id of this link in the Chamilo-course
  * @param string $title
  * @param string $url
  * @param string $description
  */
 public function __construct($id, $title, $url, $description, $category_id, $on_homepage)
 {
     parent::__construct($id, RESOURCE_LINK);
     $this->title = $title;
     $this->url = $url;
     $this->description = $description;
     $this->category_id = $category_id;
     $this->on_homepage = $on_homepage;
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:16,代碼來源:Link.class.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->device_id = new \Variable\Integer(0, 'device_id');
     $this->generation = new \Variable\TextOnly(null, 'generation');
     $this->generation->allowNull(true);
     $this->apple_id = new \Variable\TextOnly(null, 'apple_id');
     $this->apple_id->allowNull(true);
 }
開發者ID:AppStateESS,項目名稱:systemsinventory,代碼行數:9,代碼來源:IPAD.php

示例12: array

 function __construct()
 {
     parent::__construct();
     $this->restype = 'computer';
     $this->restypename = 'Computer';
     $this->namefield = 'hostname';
     $this->defaultGetDataArgs = array('sort' => 0, 'includedeleted' => 0, 'rscid' => '');
     $this->basecdata['obj'] = $this;
 }
開發者ID:bq-xiao,項目名稱:apache-vcl,代碼行數:9,代碼來源:computer.php

示例13: __construct

 /**
  * Create a new Document
  * @param int $id
  * @param string $path
  * @param string $comment
  * @param string $title
  * @param string $file_type (DOCUMENT or FOLDER);
  * @param int $size
  */
 public function __construct($id, $path, $comment, $title, $file_type, $size)
 {
     parent::__construct($id, RESOURCE_DOCUMENT);
     $this->path = 'document' . $path;
     $this->comment = $comment;
     $this->title = $title;
     $this->file_type = $file_type;
     $this->size = $size;
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:18,代碼來源:Document.class.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->lot_id = new \phpws2\Variable\Integer(null, 'lot_id');
     $this->number = new \phpws2\Variable\Integer(null, 'number');
     $this->reserved = new \phpws2\Variable\Bool(false, 'reserved');
     $this->sober = new \phpws2\Variable\Bool(false, 'sober');
     $this->active = new \phpws2\Variable\Bool(true, 'active');
 }
開發者ID:AppStateESS,項目名稱:tailgate,代碼行數:9,代碼來源:Spot.php

示例15: array

 function __construct()
 {
     parent::__construct();
     $this->restype = 'config';
     $this->restypename = 'Config';
     $this->namefield = 'name';
     $this->defaultGetDataArgs = array('rscid' => 0, 'includedeleted' => 0);
     $this->basecdata['obj'] = $this;
 }
開發者ID:bq-xiao,項目名稱:apache-vcl,代碼行數:9,代碼來源:config.php


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