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