Свойство | Тип | Описание | |
---|---|---|---|
$api | stdClass | The provider api client (optional) | |
$compressed | stdClass | Model should use "gzip,deflate" for CURLOPT_ENCODING | |
$config | array | Specific provider adapter config | |
$endpoint | string | Endpoint URL for that provider | |
$params | array | Provider extra parameters | |
$providerId | mixed | IDp ID (or unique name) | |
$useSafeUrls | boolean | Enable this to replace '.' with '_' characters in the callback urls | |
$user | Hybrid_User | Hybrid_User obj, represents the current loggedin user |
Метод | Описание | |
---|---|---|
__construct ( mixed $providerId, array $config, array $params = null ) | Common providers adapter constructor | |
clearTokens ( ) : void | Clear all existent tokens for this provider | |
deleteToken ( $token ) : void | Delete a stored token | |
getUserActivity ( $stream ) : Hybrid_User_Activity[] | Return the user activity stream | |
getUserContacts ( ) : Hybrid_User_Contact[] | Load the current logged in user contacts list from the IDp api client | |
getUserProfile ( ) : Hybrid_User_Profile | Grab the user profile from the IDp api client | |
getUserStatus ( $statusid ) : mixed | Return the user status | |
isUserConnected ( ) : boolean | Return true if the user is connected to the current provider | |
logout ( ) : boolean | Generic logout, just erase current provider adapter stored data to let Hybrid_Auth all forget about it | |
setUserConnected ( ) : void | Set user to connected | |
setUserStatus ( $status ) : mixed | Set user status | |
setUserUnconnected ( ) : void | Set user to unconnected | |
token ( $token, $value = null ) : string | Get or set a token |
Метод | Описание | |
---|---|---|
initialize ( ) : void | IDp wrappers initializer | |
loginBegin ( ) : void | Begin login | |
loginFinish ( ) : void | Finish login |
public clearTokens ( ) : void | ||
Результат | void |
public deleteToken ( $token ) : void | ||
Результат | void |
public getUserActivity ( $stream ) : Hybrid_User_Activity[] | ||
Результат | Hybrid_User_Activity[] |
public getUserContacts ( ) : Hybrid_User_Contact[] | ||
Результат | Hybrid_User_Contact[] |
public getUserProfile ( ) : Hybrid_User_Profile | ||
Результат | Hybrid_User_Profile |
public getUserStatus ( $statusid ) : mixed | ||
Результат | mixed | Provider response |
abstract protected initialize ( ) : void | ||
Результат | void |
public isUserConnected ( ) : boolean | ||
Результат | boolean |
abstract protected loginBegin ( ) : void | ||
Результат | void |
abstract protected loginFinish ( ) : void | ||
Результат | void |
public setUserConnected ( ) : void | ||
Результат | void |
public setUserStatus ( $status ) : mixed | ||
Результат | mixed | Provider response |
public setUserUnconnected ( ) : void | ||
Результат | void |
public stdClass $compressed | ||
Результат | stdClass |
public string $endpoint | ||
Результат | string |
public bool $useSafeUrls | ||
Результат | boolean |