Свойство | Тип | Описание | |
---|---|---|---|
$_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 ) |
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. |
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. |
public getHttpClient ( ) : Horde_Http_Client | ||
Результат | Horde_Http_Client |
public setHttpClient ( Horde_Http_Client $client ) | ||
$client | Horde_Http_Client | The http client |
protected Horde_Service_Twitter_Auth $_auth | ||
Результат | Horde_Service_Twitter_Auth |
protected int $_cacheLifetime | ||
Результат | integer |
protected Horde_Http_Client $_httpClient | ||
Результат | Horde_Http_Client |
protected Horde_Log_Logger $_logger | ||
Результат | Horde_Log_Logger |
protected $_objCache |
protected Horde_Service_Twitter_Request $_request | ||
Результат | Horde_Service_Twitter_Request |