Query() public static method

Create an FluentDOM::Query instance and load the source into it.
public static Query ( mixed $source = NULL, string $contentType = 'text/xml', array $options = [] ) : Query
$source mixed
$contentType string
$options array
return FluentDOM\Query
Example #1
0
/**
 * FluentDOM function, is an Alias for the \FluentDOM\FluentDOM::Query()
 * factory class function.
 *
 * @param mixed $source
 * @param string $contentType
 * @param array $options
 * @return \FluentDOM\Query
 * @codeCoverageIgnore
 */
function FluentDOM($source = NULL, $contentType = 'text/xml', array $options = [])
{
    return FluentDOM::Query($source, $contentType, $options);
}
Example #2
0
 /**
  * getDom method
  * @return \FluentDOM\Query
  */
 public function getDom()
 {
     return \FluentDOM::Query($this->getContent(), 'text/html');
 }
Example #3
0
 /**
  * Put the current node into a FluentDOM\Query
  * and call find() on it.
  *
  * @param string $expression
  * @return Query
  */
 public function find($expression)
 {
     return \FluentDOM::Query($this)->find($expression);
 }