PHP Class Essence\Provider\OEmbed\Config

Afficher le fichier Open project: benjamminf/craft-embedded-assets Class Usage Examples

Protected Properties

Свойство Type Description
$_endpoint string Endpoint.
$_format string Format.

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

completeEndpoint() public méthode

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

endpoint() public méthode

Returns the endpoint.
public endpoint ( ) : string
Résultat string Endpoint.

format() public méthode

Returns the format.
public format ( ) : string
Résultat string Format.

setEndpoint() public méthode

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

setFormat() public méthode

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

Property Details

$_endpoint protected_oe property

Endpoint.
protected string $_endpoint
Résultat string

$_format protected_oe property

Format.
protected string $_format
Résultat string