public function setFrom($from)
    {
        $attr = $this->createAttribute('from');
        $this->doc->appendChild($attr);
        $attr->appendChild($this->createTextNode($from));
    }
public function setFrom($from)
    {
        $attr = $this->createAttribute('from');
        $this->doc->appendChild($attr);
        $attr->appendChild($this->createTextNode($from));
    }
public function setFrom ( $ from ) { $ attr = $ this -> createAttribute ( 'from' ) ; $ this -> doc -> appendChild ( $ attr ) ; $ attr -> appendChild ( $ this -> createTextNode ( $ from ) ) ; }
Sets the from jid of the message
@param string $from e.g. paul.visco@chat.roswellpark.org
Sets the from jid of the message