Minahito
minah****@users*****
2006年 1月 10日 (火) 08:25:19 JST
Index: xoops2jp/html/modules/user/admin/actions/UserMailjobEditAction.class.php diff -u /dev/null xoops2jp/html/modules/user/admin/actions/UserMailjobEditAction.class.php:1.1.2.1 --- /dev/null Tue Jan 10 08:25:19 2006 +++ xoops2jp/html/modules/user/admin/actions/UserMailjobEditAction.class.php Tue Jan 10 08:25:19 2006 @@ -0,0 +1,42 @@ +<?php + +require_once XOOPS_MODULE_PATH . "/user/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/user/admin/forms/MailjobEditForm.class.php"; + +class UserMailjobEditAction extends User_AbstractEditAction +{ + function _getId() + { + return isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0; + } + + function &_getHandler() + { + $handler =& xoops_getmodulehandler('mailjob'); + return $handler; + } + + function _setupActionForm() + { + $this->mActionForm =& new User_MailjobEditForm(); + $this->mActionForm->prepare(); + } + + function executeViewInput(&$controller,&$xoopsUser,&$render) + { + $render->setTemplateName("mailjob_edit.html"); + $render->setAttribute("actionForm",$this->mActionForm); + } + + function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem) + { + XCube_Utils::redirectHeader("index.php", 1, "*SUCCESS*"); + } + + function executeViewError(&$controller,&$xoopsUser,&$renderSystem) + { + XCube_Utils::redirectHeader("index.php", 1, "*ERROR*"); + } +} + +?> \ No newline at end of file