XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
DefinitionsDeleteAction.class.php
1<?php
10
11if (!defined('XOOPS_ROOT_PATH')) {
12 exit();
13}
14
15require_once XOOPS_MODULE_PATH . '/profile/class/AbstractDeleteAction.class.php';
16
18{
22 public function _getId()
23 {
24 return (int)xoops_getrequest('field_id');
25 }
26
30 public function &_getHandler()
31 {
32 $handler =& $this->mAsset->load('handler', 'definitions');
33 return $handler;
34 }
35
39 public function _setupActionForm()
40 {
41 // $this->mActionForm =new Profile_Admin_DefinitionsDeleteForm();
42 $this->mActionForm =& $this->mAsset->create('form', 'admin.delete_definitions');
43 $this->mActionForm->prepare();
44 }
45
50 public function executeViewInput(&$render)
51 {
52 $render->setTemplateName('definitions_delete.html');
53 $render->setAttribute('actionForm', $this->mActionForm);
54 #cubson::lazy_load('definitions', $this->mObject);
55 $render->setAttribute('object', $this->mObject);
56 }
57
63 public function executeViewSuccess(&$controller, &$render)
64 {
65 $this->mRoot->mController->executeForward('./index.php?action=DefinitionsList');
66 }
67
72 public function executeViewError(&$render)
73 {
74 $this->mRoot->mController->executeRedirect('./index.php?action=DefinitionsList', 1, _MD_PROFILE_ERROR_DBUPDATE_FAILED);
75 }
76
81 public function executeViewCancel(&$render)
82 {
83 $this->mRoot->mController->executeForward('./index.php?action=DefinitionsList');
84 }
85}