__construct() 공개 메소드

public __construct ( JAXLXml | string $name, array $attrs = [], string $ns = XMPP::NS_JABBER_CLIENT )
$name JAXLXml | string
$attrs array
$ns string
예제 #1
0
파일: xmpp_msg.php 프로젝트: jaxl/JAXL
 public function __construct($attrs, $body = null, $thread = null, $subject = null)
 {
     parent::__construct('message', $attrs);
     if ($body) {
         $this->c('body')->t($body)->up();
     }
     if ($thread) {
         $this->c('thread')->t($thread)->up();
     }
     if ($subject) {
         $this->c('subject')->t($subject)->up();
     }
 }
예제 #2
0
파일: xmpp_pres.php 프로젝트: jaxl/JAXL
 public function __construct($attrs, $status = null, $show = null, $priority = null)
 {
     parent::__construct('presence', $attrs);
     if ($status) {
         $this->c('status')->t($status)->up();
     }
     if ($show) {
         $this->c('show')->t($show)->up();
     }
     if ($priority) {
         $this->c('priority')->t($priority)->up();
     }
 }
예제 #3
0
 public function __construct($attrs)
 {
     parent::__construct('iq', $attrs);
 }