Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
extensions
eauth
custom_services
CustomGoogleService.php
1
<?php
2
/**
3
* An example of extending the provider class.
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__)) .
'/services/GoogleOpenIDService.php'
;
11
12
class
CustomGoogleService
extends
GoogleOpenIDService
{
13
14
//protected $jsArguments = array('popup' => array('width' => 450, 'height' => 450));
15
16
protected
$requiredAttributes = array(
17
'name'
=> array(
'firstname'
,
'namePerson/first'
),
18
'lastname'
=> array(
'lastname'
,
'namePerson/last'
),
19
'email'
=> array(
'email'
,
'contact/email'
),
20
'language'
=> array(
'language'
,
'pref/language'
),
21
);
22
23
protected
function
fetchAttributes
() {
24
$this->attributes[
'fullname'
] = $this->attributes[
'name'
].
' '
.$this->attributes[
'lastname'
];
25
}
26
}
Generated on Thu Jun 20 2013 14:45:14 for Gentics Portal.Node PHP API by
1.8.1.2