PHP Класс Horde_Service_Vimeo, horde

Copyright 2008-2016 Horde LLC (http://www.horde.org/)
Автор: Michael J. Rubinsky ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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.

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
__construct ( Horde_Http_Client $http_client, array $params ) : Horde_Service_Vimeo Constructor

Описание методов

__construct() защищенный Метод

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.
Результат Horde_Service_Vimeo object

factory() публичный статический Метод

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.
Результат Horde_Service_Vimeo object

setFormat() публичный Метод

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

Описание свойств

$_cache защищенное свойство

An optional cache object
protected Horde_Cache $_cache
Результат Horde_Cache

$_cache_lifetime защищенное свойство

The lifetime of any cached data in seconds.
protected int $_cache_lifetime
Результат integer

$_format защищенное свойство

Obviously does not apply to the getEmbedJson() method. php - serialized php array json - json encoded
protected string $_format
Результат string

$_http_client защищенное свойство

HTTP client object to use for accessing the Vimeo API.
protected Horde_Http_Client $_http_client
Результат Horde_Http_Client