original_string: 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 '';
          }
      }
code: 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 '';
          }
      }
code_tokens: 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 '' ; } }
docstring: 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
docstring_tokens: Gets the priority value of a presence packet