public function setShow($show)
    {

        if($show == 'unavailable') {
            $this->setType($show);
        }

        $node = $this->getShow(false);
        if(!$node){
            $node = $this->createElement('show');
            $this->doc->appendChild($node);
        }

        $node->nodeValue = htmlspecialchars($show);

    }
public function setShow($show)
    {

        if($show == 'unavailable') {
            $this->setType($show);
        }

        $node = $this->getShow(false);
        if(!$node){
            $node = $this->createElement('show');
            $this->doc->appendChild($node);
        }

        $node->nodeValue = htmlspecialchars($show);

    }
public function setShow ( $ show ) { if ( $ show == 'unavailable' ) { $ this -> setType ( $ show ) ; } $ node = $ this -> getShow ( false ) ; if ( ! $ node ) { $ node = $ this -> createElement ( 'show' ) ; $ this -> doc -> appendChild ( $ node ) ; } $ node -> nodeValue = htmlspecialchars ( $ show ) ; }
Shows the status of the bot
@param string $show A code to describe the state. see http://xmpp.org/rfcs/rfc3921.html
away - The entity or resource is temporarily away.
chat - The entity or resource is actively interested in chatting.
dnd - The entity or resource is busy (dnd = "Do Not Disturb").
xa - The entity or resource is away for an extended period (xa = "eXtended Away").
Shows the status of the bot