src/sb/XMPP/Presence.php
public function getPriority($as_string=true)
    {
        $nodes = $this->doc->getElementsByTagName('priority');
        $node =$nodes->item(0);
        if($node){
            if($as_string){
                return $node->nodeValue;
            } else {
                return $node;
            }
        } else {
            return '';
        }
    }
public function getPriority($as_string=true)
    {
        $nodes = $this->doc->getElementsByTagName('priority');
        $node =$nodes->item(0);
        if($node){
            if($as_string){
                return $node->nodeValue;
            } else {
                return $node;
            }
        } else {
            return '';
        }
    }
public function getPriority ( $ as_string = true ) { $ nodes = $ this -> doc -> getElementsByTagName ( 'priority' ) ; $ node = $ nodes -> item ( 0 ) ; if ( $ node ) { if ( $ as_string ) { return $ node -> nodeValue ; } else { return $ node ; } } else { return '' ; } }
Gets the priority value of a presence packet

@param boolean $as_string Determines if node is returned as xml node or string, true by default
@return string
Gets the priority value of a presence packet