Skip to content
Thomas Weinert edited this page Jul 25, 2014 · 1 revision

FluentDOM\Loadable

FluentDOM\Loadable is an interface for alternative loaders used by FluentDOM\Nodes and FluentDOM\Query.

A loader has the two methods. Loadable::supports() validates if the loader supports a given mimetype and returns a boolean value. Loadable::load() loads a resource and returns a document.

Standard Loaders

  • Html - Loads html strings and files
  • Xml - Loads xml strings and files
  • Json - Converts Json into a wellformed XML document
  • Loaders - combines serveral other loaders
Clone this wiki locally