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


PHP Data::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct($wpdb)
 {
     parent::__construct($wpdb);
     $this->default_exemplar->creation_date = date("Y-m-d H:i:s");
     $this->default_exemplar->behaviour = "NONE";
     $this->default_exemplar->last_fl = "YES";
 }
開發者ID:Qclanton,項目名稱:retheme,代碼行數:7,代碼來源:rates.php

示例2: __construct

 /**
  * Class constructor
  * @param array|string $data The data array
  */
 public function __construct($data = array())
 {
     if ($data && is_string($data) && file_exists($data)) {
         $data = $this->_decode($data);
     }
     parent::__construct($data ? (array) $data : array());
 }
開發者ID:jbzoo,項目名稱:data,代碼行數:11,代碼來源:PHPArray.php

示例3:

 function __construct($id = null, $title, $text, $full_text, $date, $author, $view, $type)
 {
     parent::__construct($id, $title, $text);
     $this->full_text = $full_text;
     $this->date = $date;
     $this->author = $author;
     $this->view = $view;
     $this->type = $type;
 }
開發者ID:Klym,項目名稱:flame,代碼行數:9,代碼來源:News.class.php

示例4: __construct

 /**
  *
  * <code>
  * //   Construct and choose new form to use:
  * AIIXForm::choose(new MyAIIXForm($data, new AIIXInput($_POST), '.ru');
  * </code>
  * @param array $data
  * @param Input $input
  * @param string $mod : modificator, i.e. language - '.ru'
  */
 public function __construct(array $data, Input $input, $mod = null)
 {
     $this->EOT = self::extract($data, '-EOT', $this->EOT);
     $this->CANCEL = self::extract($data, '-CANCEL', $this->CANCEL);
     $this->DEFTYPE = self::extract($data, '-DEFTYPE', $this->DEFTYPE);
     parent::__construct($data, true);
     $this->input = $input;
     $this->output = new Data();
     $this->alerts = new Data();
     $this->mod = $mod;
 }
開發者ID:ailixter,項目名稱:aiix.php,代碼行數:21,代碼來源:Form.php

示例5:

 function __construct($id = null, $title, $text, $cat, $meta_d, $meta_k, $description, $view, $author, $date)
 {
     parent::__construct($id, $title, $text);
     $this->cat = $cat;
     $this->meta_d = $meta_d;
     $this->meta_k = $meta_k;
     $this->description = $description;
     $this->view = $view;
     $this->author = $author;
     $this->date = $date;
 }
開發者ID:Klym,項目名稱:flame,代碼行數:11,代碼來源:DataItem.class.php

示例6: __construct

 public function __construct()
 {
     parent::__construct('setting', 'setting');
     $this->set_expire(0);
 }
開發者ID:bluefan,項目名稱:phpsource,代碼行數:5,代碼來源:Fairy.php

示例7: __construct

 public function __construct()
 {
     parent::__construct('game', 'game');
     $this->table_name = 'vip_special_player';
 }
開發者ID:bluefan,項目名稱:phpsource,代碼行數:5,代碼來源:VipSpecial.php

示例8: __construct

 public function __construct()
 {
     parent::__construct('setting', 'setting');
     $this->set_table("tencent_yellow_special");
     $this->set_expire(0);
 }
開發者ID:bluefan,項目名稱:phpsource,代碼行數:6,代碼來源:GoldSpecial.php

示例9: __construct

 public function __construct($label, $sources, $flags = null, $searchOp = null)
 {
     $this->sources = $sources;
     parent::__construct($label, $flags, null, $searchOp);
 }
開發者ID:nOoiser,項目名稱:SimplOnPHP,代碼行數:5,代碼來源:ComplexData.php

示例10: __construct

 public function __construct()
 {
     parent::__construct('game', 'game');
     $this->Redis = $this->redis();
     $this->table_name = 'player_hero';
 }
開發者ID:bluefan,項目名稱:phpsource,代碼行數:6,代碼來源:PlayerHero.php

示例11: __construct

 public function __construct($id = NULL)
 {
     parent::__construct($id, 'AdverseEvent');
 }
開發者ID:uhtoff,項目名稱:eCRF,代碼行數:4,代碼來源:AdverseEvent.php

示例12: __construct

 public function __construct()
 {
     parent::__construct('game', 'game');
     $this->current_time = time();
 }
開發者ID:bluefan,項目名稱:phpsource,代碼行數:5,代碼來源:ActivityQuestions.php

示例13:

 function __construct()
 {
     parent::__construct();
     $this->tbl = 'row_material_master';
 }
開發者ID:nikunjpatel190,項目名稱:otsinv,代碼行數:5,代碼來源:raw_material_model.php

示例14: __construct

 public function __construct()
 {
     parent::__construct('setting', 'setting');
     $this->set_expire(0);
     $this->set_table("fairy_train");
 }
開發者ID:bluefan,項目名稱:phpsource,代碼行數:6,代碼來源:FairyTrain.php

示例15: __construct

 public function __construct()
 {
     parent::__construct('game', 'game');
     $this->Redis = $this->redis();
 }
開發者ID:bluefan,項目名稱:phpsource,代碼行數:5,代碼來源:UnionActivities.php


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