PHP Класс Horde_Service_Twitter, horde

Автор: Michael J. Rubinsky ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_auth Horde_Service_Twitter_Auth Can't lazy load the auth or request class since we need to know early if we are OAuth or Basic
$_cacheLifetime integer Default cache lifetime.
$_httpClient Horde_Http_Client The http client.
$_logger Horde_Log_Logger Optional logger.
$_objCache Cache for the various objects we lazy load in __get()
$_request Horde_Service_Twitter_Request The twitter request object.
$_responseCache Horde_Cache (Optional) Cache object.

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

Метод Описание
__construct ( Horde_Service_Twitter_Auth $auth, Horde_Service_Twitter_Request $request ) Constructor.
__get ( string $value ) : Horde_Service_Twitter_ Lazy load the twitter classes.
create ( array $params ) : Horde_Service_Twitter Factory method to easily build a working Twitter client object.
getHttpClient ( ) : Horde_Http_Client Get the http client.
setCache ( Horde_Cache $cache )
setHttpClient ( Horde_Http_Client $client ) Set the http client.
setLogger ( Horde_Log_Logger $logger )

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

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

Constructor.
public __construct ( Horde_Service_Twitter_Auth $auth, Horde_Service_Twitter_Request $request )
$auth Horde_Service_Twitter_Auth An authentication object
$request Horde_Service_Twitter_Request A request object.

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

Lazy load the twitter classes.
public __get ( string $value ) : Horde_Service_Twitter_
$value string The lowercase representation of the subclass.
Результат Horde_Service_Twitter_

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

Factory method to easily build a working Twitter client object.
public static create ( array $params ) : Horde_Service_Twitter
$params array Configuration parameters, with the following keys: - 'oauth' (required): - 'consumer_key' (required): The application's consumer key - 'consumer_secret' (required): The application's consumer secret - 'access_token' (optional): The user's access token - 'access_token_secret' (optional): The user's access token secret. - 'http' (optional): any configuration parameters for Horde_Http_Client, e.g. proxy settings.
Результат Horde_Service_Twitter A twitter object that can be used immediately to update and receive statuses etc.

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

Get the http client.
public getHttpClient ( ) : Horde_Http_Client
Результат Horde_Http_Client

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

public setCache ( Horde_Cache $cache )
$cache Horde_Cache

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

Set the http client.
public setHttpClient ( Horde_Http_Client $client )
$client Horde_Http_Client The http client

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

public setLogger ( Horde_Log_Logger $logger )
$logger Horde_Log_Logger

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

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

Can't lazy load the auth or request class since we need to know early if we are OAuth or Basic
protected Horde_Service_Twitter_Auth $_auth
Результат Horde_Service_Twitter_Auth

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

Default cache lifetime.
protected int $_cacheLifetime
Результат integer

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

The http client.
protected Horde_Http_Client $_httpClient
Результат Horde_Http_Client

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

Optional logger.
protected Horde_Log_Logger $_logger
Результат Horde_Log_Logger

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

Cache for the various objects we lazy load in __get()
protected $_objCache

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

The twitter request object.
protected Horde_Service_Twitter_Request $_request
Результат Horde_Service_Twitter_Request

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

(Optional) Cache object.
protected Horde_Cache $_responseCache
Результат Horde_Cache