Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
initialize ( ) : void | IDp wrappers initializer | |
loginBegin ( ) : void | Begin login | |
loginFinish ( ) : void | Finish login |
public clearTokens ( ) : void | ||
return | void |
public getUserActivity ( $stream ) : Hybrid_User_Activity[] | ||
return | Hybrid_User_Activity[] |
public getUserContacts ( ) : Hybrid_User_Contact[] | ||
return | Hybrid_User_Contact[] |
public getUserProfile ( ) : Hybrid_User_Profile | ||
return | Hybrid_User_Profile |
public getUserStatus ( $statusid ) : mixed | ||
return | mixed | Provider response |
abstract protected initialize ( ) : void | ||
return | void |
public isUserConnected ( ) : boolean | ||
return | boolean |
abstract protected loginBegin ( ) : void | ||
return | void |
abstract protected loginFinish ( ) : void | ||
return | void |
public setUserConnected ( ) : void | ||
return | void |
public setUserStatus ( $status ) : mixed | ||
return | mixed | Provider response |
public setUserUnconnected ( ) : void | ||
return | void |
public stdClass $compressed | ||
return | stdClass |
public bool $useSafeUrls | ||
return | boolean |