src/sb/XMPP/Presence.php
public function setPriority($priority=1)
    {

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

    }
public function setPriority($priority=1)
    {

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

    }
public function setPriority ( $ priority = 1 ) { $ node = $ this -> getPriority ( false ) ; if ( ! $ node ) { $ node = $ this -> createElement ( 'priority' ) ; $ this -> doc -> appendChild ( $ node ) ; } $ node -> nodeValue = htmlspecialchars ( $ priority ) ; }
Sets the priority of the presence
@param integer $priority
Sets the priority of the presence