1: <?php
2: 3: 4: 5:
6:
7: if (!defined('XOOPS_ROOT_PATH')) exit();
8:
9: require_once XOOPS_MODULE_PATH . "/user/class/AbstractDeleteAction.class.php";
10: require_once XOOPS_MODULE_PATH . "/user/admin/forms/MailjobAdminDeleteForm.class.php";
11:
12: class User_MailjobDeleteAction extends User_AbstractDeleteAction
13: {
14: function _getId()
15: {
16: return xoops_getrequest('mailjob_id');
17: }
18:
19: function &_getHandler()
20: {
21: $handler =& xoops_getmodulehandler('mailjob');
22: return $handler;
23: }
24:
25: function _setupActionForm()
26: {
27: $this->mActionForm =new User_MailjobAdminDeleteForm();
28: $this->mActionForm->prepare();
29: }
30:
31: function executeViewInput(&$controller, &$xoopsUser, &$render)
32: {
33: $render->setTemplateName("mailjob_delete.html");
34: $render->setAttribute('actionForm', $this->mActionForm);
35:
36: $render->setAttribute('object', $this->mObject);
37: }
38:
39: function executeViewSuccess(&$controller, &$xoopsUser, &$render)
40: {
41: $controller->executeForward("./index.php?action=MailjobList");
42: }
43:
44: function executeViewError(&$controller, &$xoopsUser, &$render)
45: {
46: $controller->executeRedirect("./index.php?action=MailjobList", 1, _MD_USER_ERROR_DBUPDATE_FAILED);
47: }
48:
49: function executeViewCancel(&$controller, &$xoopsUser, &$render)
50: {
51: $controller->executeForward("./index.php?action=MailjobList");
52: }
53: }
54:
55: ?>
56: