PHP 클래스 Essence\Provider\OEmbed\Config

파일 보기 프로젝트 열기: benjamminf/craft-embedded-assets 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_endpoint string Endpoint.
$_format string Format.

공개 메소드들

메소드 설명
__construct ( string $endpoint = '', string $format = Format::json ) Constructor.
completeEndpoint ( array $options ) Appends a set of options as parameters to the endpoint.
endpoint ( ) : string Returns the endpoint.
format ( ) : string Returns the format.
setEndpoint ( string $endpoint ) Sets the endpoint.
setFormat ( string $format ) Sets the format.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $endpoint = '', string $format = Format::json )
$endpoint string The OEmbed endpoint.
$format string The expected response format.

completeEndpoint() 공개 메소드

Appends a set of options as parameters to the endpoint.
public completeEndpoint ( array $options )
$options array Options to append.

endpoint() 공개 메소드

Returns the endpoint.
public endpoint ( ) : string
리턴 string Endpoint.

format() 공개 메소드

Returns the format.
public format ( ) : string
리턴 string Format.

setEndpoint() 공개 메소드

Sets the endpoint.
public setEndpoint ( string $endpoint )
$endpoint string Endpoint.

setFormat() 공개 메소드

Sets the format.
public setFormat ( string $format )
$format string Format.

프로퍼티 상세

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

Endpoint.
protected string $_endpoint
리턴 string

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

Format.
protected string $_format
리턴 string