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