PHP Class Essence\Extractor

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

Protected Properties

Свойство Type Description
$_Collection Essence\Provider\Collection A collection of providers.

Méthodes publiques

Méthode Description
__construct ( Collection $Collection ) Constructor.
extract ( string $url, array $options = [] ) : Essence\Media Fetches informations about the given URL.
extractAll ( array $urls, array $options = [] ) : array Fetches informations about the given URLs.

Method Details

__construct() public méthode

Constructor.
public __construct ( Collection $Collection )
$Collection Essence\Provider\Collection Providers collection.

extract() public méthode

Fetches informations about the given URL.
public extract ( string $url, array $options = [] ) : Essence\Media
$url string URL to fetch informations from.
$options array Custom options to be interpreted by a provider.
Résultat Essence\Media Embed informations.

extractAll() public méthode

Fetches informations about the given URLs.
public extractAll ( array $urls, array $options = [] ) : array
$urls array An array of URLs to fetch informations from.
$options array Custom options to be interpreted by a provider.
Résultat array An array of informations, indexed by URL.

Property Details

$_Collection protected_oe property

A collection of providers.
protected Collection,Essence\Provider $_Collection
Résultat Essence\Provider\Collection