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