protected function getNodeListForTagBasedQuery($dom, $marker)
    {
        $xpath = new \DOMXPath($dom);

        $query = '/project/file/markers/' . $marker . '|';
        $query .= '/project/file/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/class/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/class/*/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/interface/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/interface/*/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/function/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/constant/docblock/tag[@name="' . $marker . '"]';

        return $xpath->query($query);
    }
protected function getNodeListForTagBasedQuery($dom, $marker)
    {
        $xpath = new \DOMXPath($dom);

        $query = '/project/file/markers/' . $marker . '|';
        $query .= '/project/file/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/class/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/class/*/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/interface/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/interface/*/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/function/docblock/tag[@name="' . $marker . '"]|';
        $query .= '/project/file/constant/docblock/tag[@name="' . $marker . '"]';

        return $xpath->query($query);
    }
protected function getNodeListForTagBasedQuery ( $ dom , $ marker ) { $ xpath = new \ DOMXPath ( $ dom ) ; $ query = '/project/file/markers/' . $ marker . '|' ; $ query .= '/project/file/docblock/tag[@name="' . $ marker . '"]|' ; $ query .= '/project/file/class/docblock/tag[@name="' . $ marker . '"]|' ; $ query .= '/project/file/class/*/docblock/tag[@name="' . $ marker . '"]|' ; $ query .= '/project/file/interface/docblock/tag[@name="' . $ marker . '"]|' ; $ query .= '/project/file/interface/*/docblock/tag[@name="' . $ marker . '"]|' ; $ query .= '/project/file/function/docblock/tag[@name="' . $ marker . '"]|' ; $ query .= '/project/file/constant/docblock/tag[@name="' . $ marker . '"]' ; return $ xpath -> query ( $ query ) ; }
Build a tag based query string and return result

@param \DOMDocument $dom    Markers are extracted and a summary inserted
in this object.
@param string       $marker The marker we're searching for throughout xml

@return \DOMNodeList
Build a tag based query string and return result