Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
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 
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 }