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.
 /**
  * @param DomNode $filePageDom
  *
  * @return string
  */
 private function fetchFileLinkCode(DomNode $filePageDom)
 {
     return $filePageDom->query('#DownloadForm_linkcode')->val();
 }
 /**
  * @param DomNode $homePageDom
  *
  * @return bool
  */
 private function isLoggedIn(DomNode $homePageDom)
 {
     return $homePageDom->query('#_login-form')->count() < 1 && $homePageDom->query('.dropdown-menu a[href*="logout"]')->count() > 0;
 }