FluentDOM::Query PHP Method

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
    public static function Query($source = NULL, $contentType = 'text/xml', array $options = [])
    {
        $query = new FluentDOM\Query();
        if (isset($source)) {
            $query->load($source, $contentType, $options);
        }
        return $query;
    }

Usage Example

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);
}
All Usage Examples Of FluentDOM::Query