本文整理汇总了PHP中Reply::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Reply::__construct方法的具体用法?PHP Reply::__construct怎么用?PHP Reply::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Reply
的用法示例。
在下文中一共展示了Reply::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
*
* $call
* $content 回复的内容
* $referred 指明$content是直接回复的内容,还是定义的文本素材
*/
public function __construct($call, $content, $referred = true)
{
parent::__construct($call);
if ($referred) {
if ($txt = \TMS_APP::model('matter\\text')->byId($content, 'content')) {
$content = $txt->content;
} else {
$content = "文本回复【{$content】不存在}";
}
}
$this->content = $content;
}
示例2: __construct
/**
* Constructor.
*/
public function __construct()
{
parent::__construct($this->defaults);
}
示例3: __construct
/**
*
*/
public function __construct($call, $wid, $keyword = '')
{
parent::__construct($call);
$this->wid = $wid;
$this->remark = trim(str_replace($keyword, '', $call['data']));
}
示例4: __construct
/**
*
*/
public function __construct($call, $aid, $directReply = true)
{
parent::__construct($call);
$this->aid = $aid;
$this->directReply = $directReply;
}
示例5: __construct
public function __construct($call, $link_id)
{
parent::__construct($call);
$this->link_id = $link_id;
}
示例6: __construct
/**
*
*/
public function __construct($call, $set_id)
{
parent::__construct($call);
$this->set_id = $set_id;
}
示例7: __construct
public function __construct($call, $innerId, $command = null)
{
parent::__construct($call);
$this->innerId = $innerId;
$this->command = $command;
}