XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
DataDeleteAction.class.php
1<?php
3 * @package profile
4 * @version 2.5.0
5 * @author Original Author Kilica
6 * @copyright (c) 2005-2025 The XOOPSCube Project
7 * @license GPL 2.0
8 */
9
10if (!defined('XOOPS_ROOT_PATH')) {
11 exit();
12}
13
14require_once XOOPS_MODULE_PATH . '/profile/class/AbstractDeleteAction.class.php';
15
17{
21 public function _getId()
22 {
23 return (int)xoops_getrequest('uid');
24 }
25
29 public function &_getHandler()
30 {
31 $handler =& $this->mAsset->load('handler', 'data');
32 return $handler;
33 }
34
38 public function _setupActionForm()
39 {
40 // $this->mActionForm =new Profile_DataDeleteForm();
41 $this->mActionForm =& $this->mAsset->create('form', 'delete_data');
42 $this->mActionForm->prepare();
43 }
44
49 public function executeViewInput(&$render)
50 {
51 $render->setTemplateName('profile_data_delete.html');
52 $render->setAttribute('actionForm', $this->mActionForm);
53 #cubson::lazy_load('data', $this->mObject);
54 $render->setAttribute('object', $this->mObject);
55 }
56
61 public function executeViewSuccess(&$render)
62 {
63 $this->mRoot->mController->executeForward('./index.php?action=DataList');
64 }
65
70 public function executeViewError(&$render)
71 {
72 $this->mRoot->mController->executeRedirect('./index.php?action=DataList', 1, _MD_PROFILE_ERROR_DBUPDATE_FAILED);
73 }
74
79 public function executeViewCancel(&$render)
80 {
81 $this->mRoot->mController->executeForward('./index.php?action=DataList');
82 }
83}