/** * * $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; }
/** * Constructor. */ public function __construct() { parent::__construct($this->defaults); }
/** * */ public function __construct($call, $wid, $keyword = '') { parent::__construct($call); $this->wid = $wid; $this->remark = trim(str_replace($keyword, '', $call['data'])); }
/** * */ public function __construct($call, $aid, $directReply = true) { parent::__construct($call); $this->aid = $aid; $this->directReply = $directReply; }
public function __construct($call, $link_id) { parent::__construct($call); $this->link_id = $link_id; }
/** * */ public function __construct($call, $set_id) { parent::__construct($call); $this->set_id = $set_id; }
public function __construct($call, $innerId, $command = null) { parent::__construct($call); $this->innerId = $innerId; $this->command = $command; }