PHP Interface FluentDOM\Loadable

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

Méthodes publiques

Méthode 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 méthode

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
Résultat Document | Result | null

loadFragment() public méthode

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
Résultat null | DocumentFragment

supports() public méthode

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