Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
extensions
eauth
services
GoogleOpenIDService.php
1
<?php
2
/**
3
* GoogleOpenIDService class file.
4
*
5
* @author Maxim Zemskov <nodge@yandex.ru>
6
* @link http://code.google.com/p/yii-eauth/
7
* @license http://www.opensource.org/licenses/bsd-license.php
8
*/
9
10
require_once dirname(dirname(__FILE__)) .
'/EOpenIDService.php'
;
11
12
/**
13
* Google provider class.
14
* @package application.extensions.eauth.services
15
*/
16
class
GoogleOpenIDService
extends
EOpenIDService
{
17
18
protected
$name =
'google'
;
19
protected
$title =
'Google'
;
20
protected
$type =
'OpenID'
;
21
protected
$jsArguments = array(
'popup'
=> array(
'width'
=> 880,
'height'
=> 520));
22
23
protected
$url =
'https://www.google.com/accounts/o8/id'
;
24
protected
$requiredAttributes = array(
25
'name'
=> array(
'firstname'
,
'namePerson/first'
),
26
//'lastname' => array('lastname', 'namePerson/last'),
27
//'email' => array('email', 'contact/email'),
28
//'language' => array('language', 'pref/language'),
29
);
30
31
/*protected function fetchAttributes() {
32
$this->attributes['fullname'] = $this->attributes['name'].' '.$this->attributes['lastname'];
33
}*/
34
}
Generated on Thu Feb 6 2014 15:47:54 for Gentics Portal.Node PHP API by
1.8.1.2