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