XMPPMsg::__construct PHP Метод

__construct() публичный Метод

public __construct ( $attrs, $body = null, $thread = null, $subject = null )
    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();
        }
    }