getValues(); if (empty($data['email'])) { $data['email'] = null; } foreach ($form->getDefaults() as $field => $value) { if (!array_key_exists($field, $data)) { $data[$field] = $value; } } $this->_getDataObj()->initFromForm($data); return $this; } protected function _doEdit() { $this->_checkPermission(); return parent::_doEdit(); } protected function _doDelete() { $this->_checkPermission(); parent::_doDelete(); } protected function _checkPermission() { if (App_Admin_Abstract_Obj::TYPE_ADMIN != $this->_getDataObj()->getData('type')) { $this->_setBackError(static::MSG_DATA_UNAVAILABLE); $this->_doBack(); } } }