22 public function _getId()
24 return isset($_REQUEST[
'imgcat_id']) ? xoops_getrequest(
'imgcat_id') : 0;
27 public function &_getHandler()
29 $handler =& xoops_getmodulehandler(
'imagecategory');
33 public function _setupObject()
35 parent::_setupObject();
36 $this->mObject->loadReadGroups();
37 $this->mObject->loadUploadGroups();
40 public function _setupActionForm()
45 $this->mActionForm->prepare();
48 public function executeViewInput(&$controller, &$xoopsUser, &$render)
50 $render->setTemplateName(
'imagecategory_edit.html');
51 $render->setAttribute(
'actionForm', $this->mActionForm);
52 $render->setAttribute(
'object', $this->mObject);
54 $handler =& xoops_gethandler(
'group');
55 $groupArr =& $handler->getObjects();
56 $render->setAttribute(
'groupArr', $groupArr);
59 public function executeViewSuccess(&$controller, &$xoopsUser, &$render)
61 $controller->executeForward(
'./index.php?action=ImagecategoryList');
64 public function executeViewError(&$controller, &$xoopsUser, &$render)
66 $controller->executeRedirect(
'./index.php?action=ImagecategoryList', 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED);
69 public function executeViewCancel(&$controller, &$xoopsUser, &$render)
71 $controller->executeForward(
'./index.php?action=ImagecategoryList');