dataObj->setPrimarykey($this->doc->getAuthData('id')); parent::_callAction(); } protected function _initFromForm(Qs_Form $form) { $this->_newPassword = $form->password->getValue(); return parent::_initFromForm($form); } protected function _postUpdate() { $data = $this->doc->getAuth()->getStorage()->read(); if (!empty($this->_newPassword)) { $data['credential'] = $this->_newPassword; $this->doc->getAuth()->getStorage()->write($data); } return $this; } protected function _bindFormButtons(Qs_Form $form) { $form->addElement('submit', 'btnSubmit', array( 'label' => 'Save', 'attribs' => array('class' => 'btn'), 'decorators' => array('ViewHelper') ) ); $decorators = array('FormElements'); $decorators[] = array('decorator' => 'HtmlTag', 'options' => array('tag' => 'div')); $decorators[] = 'Fieldset'; $decorators[] = 'DtDdWrapper'; $form->addDisplayGroup(array('btnSubmit'), 'submitGroup', array('decorators' => $decorators)); return $this; } }