本文整理匯總了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;
}