PHP Class Horde_Service_Vimeo, horde

Copyright 2008-2016 Horde LLC (http://www.horde.org/)
Author: Michael J. Rubinsky ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_cache Horde_Cache An optional cache object
$_cache_lifetime integer The lifetime of any cached data in seconds.
$_format string Obviously does not apply to the getEmbedJson() method. php - serialized php array json - json encoded
$_http_client Horde_Http_Client HTTP client object to use for accessing the Vimeo API.

Méthodes publiques

Méthode Description
factory ( string $driver = 'Simple', array $params = null ) : Horde_Service_Vimeo Facory method. Attempt to return a concrete Horde_Service_Vimeo instance based on the parameters. A 'http_client' parameter is required. An optional 'cache' and 'cache_lifetime' parameters are also taken.
setFormat ( string $format ) Setter for changing the format parameter

Méthodes protégées

Méthode Description
__construct ( Horde_Http_Client $http_client, array $params ) : Horde_Service_Vimeo Constructor

Method Details

__construct() protected méthode

Constructor
protected __construct ( Horde_Http_Client $http_client, array $params ) : Horde_Service_Vimeo
$http_client Horde_Http_Client Http client object.
$params array An array of any other parameters or optional object dependencies.
Résultat Horde_Service_Vimeo object

factory() public static méthode

Facory method. Attempt to return a concrete Horde_Service_Vimeo instance based on the parameters. A 'http_client' parameter is required. An optional 'cache' and 'cache_lifetime' parameters are also taken.
public static factory ( string $driver = 'Simple', array $params = null ) : Horde_Service_Vimeo
$driver string The concrete class to instantiate.
$params array An array containing any parameters the class needs.
Résultat Horde_Service_Vimeo object

setFormat() public méthode

Setter for changing the format parameter
public setFormat ( string $format )
$format string The data format requested.

Property Details

$_cache protected_oe property

An optional cache object
protected Horde_Cache $_cache
Résultat Horde_Cache

$_cache_lifetime protected_oe property

The lifetime of any cached data in seconds.
protected int $_cache_lifetime
Résultat integer

$_format protected_oe property

Obviously does not apply to the getEmbedJson() method. php - serialized php array json - json encoded
protected string $_format
Résultat string

$_http_client protected_oe property

HTTP client object to use for accessing the Vimeo API.
protected Horde_Http_Client $_http_client
Résultat Horde_Http_Client