Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GoogleService Class Reference
Inheritance diagram for GoogleService:
GoogleOpenIDService IUserFields EOpenIDService EAuthServiceBase IAuthService IAuthService

Public Member Functions

 getName ()
 getEmail ()
 getError ()

Protected Member Functions

 fetchAttributes ()

Protected Attributes

 $requiredAttributes
- Protected Attributes inherited from GoogleOpenIDService
 $name = 'google'
 $title = 'Google'
 $type = 'OpenID'
 $jsArguments = array('popup' => array('width' => 880, 'height' => 520))
 $url = 'https://www.google.com/accounts/o8/id'
 $requiredAttributes
- Protected Attributes inherited from EOpenIDService
 $url
 $requiredAttributes = array()
- Protected Attributes inherited from EAuthServiceBase
 $name
 $title
 $type
 $jsArguments = array()
 $attributes = array()
 $authenticated = false

Detailed Description

Definition at line 5 of file GoogleService.php.

Member Function Documentation

GoogleService::fetchAttributes ( )
protected

Fetch attributes array.

Returns
boolean whether the attributes was successfully fetched.

Reimplemented from EAuthServiceBase.

Definition at line 22 of file GoogleService.php.

{
$this->attributes['name'] = $this->attributes['firstname'] . ' ' . $this->attributes['lastname'];
$this->attributes['displayId'] = $this->attributes['email'];
return true;
}

Member Data Documentation

GoogleService::$requiredAttributes
protected
Initial value:
array(
'firstname' => array('firstname', 'namePerson/first'),
'lastname' => array('lastname', 'namePerson/last'),
'email' => array('email', 'contact/email'),
'language' => array('language', 'pref/language'),
)

Definition at line 11 of file GoogleService.php.


The documentation for this class was generated from the following file: