pQuery\DomNode::query PHP Method

query() public method

Performs a css query on the node.
public query ( string $query = '*' ) : pquery\IQuery
$query string
return pquery\IQuery Returns the matching nodes from the query.
    public function query($query = '*')
    {
        $select = $this->select($query);
        $result = new \pQuery((array) $select);
        return $result;
    }

Usage Example

 /**
  * @param DomNode $filePageDom
  *
  * @return string
  */
 private function fetchFileLinkCode(DomNode $filePageDom)
 {
     return $filePageDom->query('#DownloadForm_linkcode')->val();
 }
All Usage Examples Of pQuery\DomNode::query
DomNode