PHP 클래스 Essence\Provider

상속: use trait Essence\Configurable
파일 보기 프로젝트 열기: benjamminf/craft-embedded-assets 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_preparators array Preparators.
$_presenters array Presenters.
$_properties array Configuration options.

공개 메소드들

메소드 설명
extract ( string $url, array $options = [] ) : Media Extracts information from the given URL.
setPreparators ( array $preparators ) Sets preparators.
setPresenters ( array $presenters ) Sets presenters.

보호된 메소드들

메소드 설명
_extract ( string $url, array $options ) : Media Does the actual fetching of informations.

비공개 메소드들

메소드 설명
filter ( mixed $value, array $filters ) : mixed Filters a value through a set of functions.

메소드 상세

_extract() 추상적인 보호된 메소드

Does the actual fetching of informations.
abstract protected _extract ( string $url, array $options ) : Media
$url string URL to fetch informations from.
$options array Custom options to be interpreted by the provider.
리턴 Media Embed informations.

extract() 최종 공개 메소드

Extracts information from the given URL.
final public extract ( string $url, array $options = [] ) : Media
$url string URL to fetch informations from.
$options array Custom options to be interpreted by the provider.
리턴 Media Embed informations.

setPreparators() 공개 메소드

Sets preparators.
public setPreparators ( array $preparators )
$preparators array Preparators.

setPresenters() 공개 메소드

Sets presenters.
public setPresenters ( array $presenters )
$presenters array Presenters.

프로퍼티 상세

$_preparators 보호되어 있는 프로퍼티

Preparators.
protected array $_preparators
리턴 array

$_presenters 보호되어 있는 프로퍼티

Presenters.
protected array $_presenters
리턴 array

$_properties 보호되어 있는 프로퍼티

Configuration options.
protected array $_properties
리턴 array