10 require_once dirname(dirname(__FILE__)) .
'/services/YandexOpenIDService.php';
14 protected $jsArguments = array(
'popup' => array(
'width' => 900,
'height' => 620));
16 protected $requiredAttributes = array(
17 'name' => array(
'fullname',
'namePerson'),
18 'username' => array(
'nickname',
'namePerson/friendly'),
19 'email' => array(
'email',
'contact/email'),
20 'gender' => array(
'gender',
'person/gender'),
21 'birthDate' => array(
'dob',
'birthDate'),
25 if (isset($this->attributes[
'username']) && !empty($this->attributes[
'username']))
26 $this->attributes[
'url'] =
'http://openid.yandex.ru/'.$this->attributes[
'username'];
28 if (isset($this->attributes[
'birthDate']) && !empty($this->attributes[
'birthDate']))
29 $this->attributes[
'birthDate'] = strtotime($this->attributes[
'birthDate']);