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(); } }
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); }