src/sb/XMPP/Presence.php
public function setStatus($status)
    {

        $node = $this->getStatus(false);
        if(!$node){
            $node = $this->createElement('status');
            $this->doc->appendChild($node);
        }
        $node->nodeValue = htmlspecialchars($status);

    }
public function setStatus($status)
    {

        $node = $this->getStatus(false);
        if(!$node){
            $node = $this->createElement('status');
            $this->doc->appendChild($node);
        }
        $node->nodeValue = htmlspecialchars($status);

    }
public function setStatus ( $ status ) { $ node = $ this -> getStatus ( false ) ; if ( ! $ node ) { $ node = $ this -> createElement ( 'status' ) ; $ this -> doc -> appendChild ( $ node ) ; } $ node -> nodeValue = htmlspecialchars ( $ status ) ; }
Set the status of the presence packet

@param string $status The status message to display in human readible format
Set the status of the presence packet