14 return xoops_getrequest(
'rank_id');
19 $handler =& xoops_getmodulehandler(
'ranks');
26 $this->mActionForm->prepare();
31 if (
null != $this->mActionForm->mFormFile) {
32 @unlink(XOOPS_UPLOAD_PATH .
'/' . $this->mActionForm->mOldFileName);
33 if (!$this->mActionForm->mFormFile->SaveAs(XOOPS_UPLOAD_PATH)) {
34 return USER_FRAME_VIEW_ERROR;
38 return parent::_doExecute();
41 public function executeViewInput(&$controller, &$xoopsUser, &$render)
43 $render->setTemplateName(
'ranks_edit.html');
44 $render->setAttribute(
'actionForm', $this->mActionForm);
45 $render->setAttribute(
'object', $this->mObject);
48 public function executeViewSuccess(&$controller, &$xoopsUser, &$render)
50 $controller->executeForward(
'./index.php?action=RanksList');
53 public function executeViewError(&$controller, &$xoopsUser, &$render)
55 $controller->executeRedirect(
'./index.php?action=RanksList', 1, _MD_USER_ERROR_DBUPDATE_FAILED);
58 public function executeViewCancel(&$controller, &$xoopsUser, &$render)
60 $controller->executeForward(
'./index.php?action=RanksList');