Пример #1
0
    public function __construct($toUserName, $fromUserName, $content, $funcFlag = 0)
    {
        parent::__construct($toUserName, $fromUserName, $funcFlag);
        $this->content = $content;
        $this->template = <<<XML
<xml>
  <ToUserName><![CDATA[%s]]></ToUserName>
  <FromUserName><![CDATA[%s]]></FromUserName>
  <CreateTime>%s</CreateTime>
  <MsgType><![CDATA[text]]></MsgType>
  <Content><![CDATA[%s]]></Content>
  <FuncFlag>%s</FuncFlag>
</xml>
XML;
    }
Пример #2
0
    public function __construct($toUserName, $fromUserName, $items, $funcFlag)
    {
        parent::__construct($toUserName, $fromUserName, $funcFlag);
        $this->items = $items;
        $this->template = <<<XML
<xml>
  <ToUserName><![CDATA[%s]]></ToUserName>
  <FromUserName><![CDATA[%s]]></FromUserName>
  <CreateTime>%s</CreateTime>
  <MsgType><![CDATA[news]]></MsgType>
  <ArticleCount>%s</ArticleCount>
  <Articles>
    %s
  </Articles>
  <FuncFlag>%s</FuncFlag>
</xml>
XML;
    }
Пример #3
0
    public function __construct($fromUserName, $toUserName, $kfAccount)
    {
        parent::__construct($fromUserName, $toUserName);
        $this->kfAccount = $kfAccount;
        $this->template = <<<XML
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%d</CreateTime>
<MsgType><![CDATA[transfer_customer_service]]></MsgType>
<TransInfo>
\t<KfAccount>%s</KfAccount>
</TransInfo>
</xml>
XML;
    }
Пример #4
0
 public function __construct($toUserName, $fromUserName, $items, $funcFlag)
 {
     parent::__construct($toUserName, $fromUserName, $funcFlag);
     $this->items = $items;
 }
Пример #5
0
 public function __construct($fromUserName, $toUserName, $content)
 {
     parent::__construct($fromUserName, $toUserName);
 }