27 $user=Zend_Auth::getInstance()->getIdentity();
28 $username = $this->addElement(
'text',
'username', array(
29 'filters' => array(
'StringTrim',
'StringToLower'),
30 'validators' => array(
32 array(
'StringLength',
false, array(3, 20)),
35 'label' =>
'Your username:',
37 'value' => $user->getId(),
40 $display_name = $this->addElement(
'text',
'display_name', array(
41 'filters' => array(
'StringTrim'),
43 'label' =>
'Display Name:',
44 'value' => $user->getDisplayName(),
47 $password = $this->addElement(
'password',
'password', array(
48 'filters' => array(
'StringTrim'),
50 'label' =>
'Password:',
53 $email = $this->addElement(
'text',
'email', array(
54 'filters' => array(
'StringTrim'),
55 'validators' => array(
'emailAddress'),
58 'value' => $user->getEmail(),
61 $email = $this->addElement(
'text',
'location', array(
62 'filters' => array(
'StringTrim'),
64 'label' =>
'Location:',
65 'value' => $user->getLocation(),
68 $email = $this->addElement(
'text',
'webpage', array(
69 'filters' => array(
'StringTrim'),
71 'label' =>
'Webpage:',
72 'value' => $user->getWebpage(),
75 $email = $this->addElement(
'text',
'avatar', array(
76 'filters' => array(
'StringTrim'),
78 'label' =>
'Avatar (URL):',
79 'value' => $user->getAvatar(),
82 $login = $this->addElement(
'submit',
'save', array(
91 $this->setDecorators(array(
93 array(
'HtmlTag', array(
'tag' =>
'dl',
'class' =>
'zend_form')),
94 array(
'Description', array(
'placement' =>
'prepend')),