__construct() public method

public __construct ( JAXLXml | string $name, array $attrs = [], string $ns = XMPP::NS_JABBER_CLIENT )
$name JAXLXml | string
$attrs array
$ns string
Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 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();
     }
 }
 public function __construct($attrs)
 {
     parent::__construct('iq', $attrs);
 }