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

Protected Member Functions

 fetchAttributes ()

Protected Attributes

 $jsArguments = array('popup' => array('width' => 900, 'height' => 620))
 $requiredAttributes
- Protected Attributes inherited from YandexOpenIDService
 $name = 'yandex'
 $title = 'Yandex'
 $type = 'OpenID'
 $jsArguments = array('popup' => array('width' => 900, 'height' => 550))
 $url = 'http://openid.yandex.ru/'
 $requiredAttributes
- Protected Attributes inherited from EOpenIDService
 $url
 $requiredAttributes = array()
- Protected Attributes inherited from EAuthServiceBase
 $name
 $title
 $type
 $jsArguments = array()
 $attributes = array()
 $authenticated = false

Additional Inherited Members

- Public Member Functions inherited from EOpenIDService
 init ($component, $options=array())
 authenticate ()

Detailed Description

An example of extending the provider class.

Author
Maxim Zemskov nodge.nosp@m.@yan.nosp@m.dex.r.nosp@m.u http://www.opensource.org/licenses/bsd-license.php

Definition at line 12 of file CustomYandexService.php.

Member Function Documentation

CustomYandexService::fetchAttributes ( )
protected

Fetch attributes array.

Returns
boolean whether the attributes was successfully fetched.

Reimplemented from YandexOpenIDService.

Definition at line 24 of file CustomYandexService.php.

{
if (isset($this->attributes['username']) && !empty($this->attributes['username']))
$this->attributes['url'] = 'http://openid.yandex.ru/'.$this->attributes['username'];
if (isset($this->attributes['birthDate']) && !empty($this->attributes['birthDate']))
$this->attributes['birthDate'] = strtotime($this->attributes['birthDate']);
}

Member Data Documentation

CustomYandexService::$requiredAttributes
protected
Initial value:
array(
'name' => array('fullname', 'namePerson'),
'username' => array('nickname', 'namePerson/friendly'),
'email' => array('email', 'contact/email'),
'gender' => array('gender', 'person/gender'),
'birthDate' => array('dob', 'birthDate'),
)

Definition at line 16 of file CustomYandexService.php.


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