메소드 |
설명 |
|
__construct ( array | Traversable $list = NULL ) |
Store the a list of loaders if provided. |
|
add ( fluentdom\Loadable $loader ) |
Add a loader to the list |
|
getIterator ( ) : Traversable |
Allow to iterate all added loaders |
|
load ( mixed $source, string $contentType, array | Traversable | Options $options = [] ) : DOMDocument | Result | null |
Load a data source, the content type allows the loader to decide if it supports
the data source |
|
loadFragment ( mixed $source, string $contentType, array | Traversable | Options $options = [] ) : DOMDocumentFragment | null |
Load a data source as a fragment, the content type allows the loader to decide if it supports
the data source |
|
remove ( fluentdom\Loadable $loader ) |
Remove a loader to the list |
|
supports ( string $contentType ) : boolean |
Validate if the list contains a loader that supports the given content type |
|