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