PHP 인터페이스 FluentDOM\Loadable

The class can be attached to a FluentDOM\Query objects using the FluentDOM\Loaders class.
파일 보기 프로젝트 열기: fluentdom/fluentdom

공개 메소드들

메소드 설명
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

메소드 상세

load() 공개 메소드

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
리턴 Document | Result | null

loadFragment() 공개 메소드

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
리턴 null | DocumentFragment

supports() 공개 메소드

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