_getDataObj()->setPrimaryKey($this->_doc->getAuthData('id')); $this->_setMessage('Your ' . $this->getConfig('itemName') . ' has been updated', static::MSG_UPDATED); $lockMessage = 'Your ' . $this->getConfig('itemName') . ' is currently being edited by "%firstName% %lastName%" %userRoleTitle%. ' . 'Please try again later.'; $this->_setMessage($lockMessage, static::MSG_LOCKED); return parent::_init(); } protected function _initAction() { $this->_setBackUrl(MemberView::getPage('url') . '/' . $this->_doc->getAuthData('alias')); return parent::_initAction(); } protected function _getLog() { if (null === $this->_log) { parent::_getLog(); $this->_log->setAction('edit', 'Headed to Edit ' . $this->getConfig('itemName')); $this->_log->setAction('update', $this->getConfig('itemName') . ' has been updated'); } return $this->_log; } protected function _getFormOptions($type = null) { $options = parent::_getFormOptions($type); $options['cancelUrl'] = MemberView::getPage('url') . '/' . $this->_doc->getAuthData('alias'); return $options; } }