本文整理汇总了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";
}
示例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());
}
示例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;
}
示例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;
}
示例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;
}
示例6: __construct
public function __construct()
{
parent::__construct('setting', 'setting');
$this->set_expire(0);
}
示例7: __construct
public function __construct()
{
parent::__construct('game', 'game');
$this->table_name = 'vip_special_player';
}
示例8: __construct
public function __construct()
{
parent::__construct('setting', 'setting');
$this->set_table("tencent_yellow_special");
$this->set_expire(0);
}
示例9: __construct
public function __construct($label, $sources, $flags = null, $searchOp = null)
{
$this->sources = $sources;
parent::__construct($label, $flags, null, $searchOp);
}
示例10: __construct
public function __construct()
{
parent::__construct('game', 'game');
$this->Redis = $this->redis();
$this->table_name = 'player_hero';
}
示例11: __construct
public function __construct($id = NULL)
{
parent::__construct($id, 'AdverseEvent');
}
示例12: __construct
public function __construct()
{
parent::__construct('game', 'game');
$this->current_time = time();
}
示例13:
function __construct()
{
parent::__construct();
$this->tbl = 'row_material_master';
}
示例14: __construct
public function __construct()
{
parent::__construct('setting', 'setting');
$this->set_expire(0);
$this->set_table("fairy_train");
}
示例15: __construct
public function __construct()
{
parent::__construct('game', 'game');
$this->Redis = $this->redis();
}