PHP Interface FluentDOM\Loadable

The class can be attached to a FluentDOM\Query objects using the FluentDOM\Loaders class.
Datei anzeigen Open project: fluentdom/fluentdom

Public Methods

Method Description
load ( mixed $source, string $contentType, array | Traversable | Options $options = [] ) : Document | Result | null Load the data source and return the new DOM document. Return NULL if the data source could not be loaded.
loadFragment ( mixed $source, string $contentType, array | Traversable | Options $options = [] ) : null | DocumentFragment Load the data source and return the new DOM document. Return NULL if the data source could not be loaded.
supports ( string $contentType ) : boolean Validate if the loader supports the given content type

Method Details

load() public method

Load the data source and return the new DOM document. Return NULL if the data source could not be loaded.
public load ( mixed $source, string $contentType, array | Traversable | Options $options = [] ) : Document | Result | null
$source mixed
$contentType string
$options array | Traversable | FluentDOM\Loader\Options Optional options for the loader
return Document | Result | null

loadFragment() public method

Load the data source and return the new DOM document. Return NULL if the data source could not be loaded.
public loadFragment ( mixed $source, string $contentType, array | Traversable | Options $options = [] ) : null | DocumentFragment
$source mixed
$contentType string
$options array | Traversable | FluentDOM\Loader\Options Optional options for the loader
return null | DocumentFragment

supports() public method

Validate if the loader supports the given content type
public supports ( string $contentType ) : boolean
$contentType string
return boolean