1: <?php
2: 3: 4: 5: 6:
7:
8: if (!defined('XOOPS_ROOT_PATH')) exit();
9:
10: require_once XOOPS_MODULE_PATH . "/profile/class/AbstractDeleteAction.class.php";
11:
12: class Profile_DataDeleteAction extends Profile_AbstractDeleteAction
13: {
14: 15: 16:
17: function _getId()
18: {
19: return intval(xoops_getrequest('uid'));
20: }
21:
22: 23: 24:
25: function &_getHandler()
26: {
27: $handler =& $this->mAsset->load('handler', "data");
28: return $handler;
29: }
30:
31: 32: 33:
34: function _setupActionForm()
35: {
36:
37: $this->mActionForm =& $this->mAsset->create('form', "delete_data");
38: $this->mActionForm->prepare();
39: }
40:
41: 42: 43:
44: function executeViewInput(&$render)
45: {
46: $render->setTemplateName("profile_data_delete.html");
47: $render->setAttribute('actionForm', $this->mActionForm);
48:
49: $render->setAttribute('object', $this->mObject);
50: }
51:
52: 53: 54:
55: function executeViewSuccess(&$render)
56: {
57: $this->mRoot->mController->executeForward("./index.php?action=DataList");
58: }
59:
60: 61: 62:
63: function executeViewError(&$render)
64: {
65: $this->mRoot->mController->executeRedirect("./index.php?action=DataList", 1, _MD_PROFILE_ERROR_DBUPDATE_FAILED);
66: }
67:
68: 69: 70:
71: function executeViewCancel(&$render)
72: {
73: $this->mRoot->mController->executeForward("./index.php?action=DataList");
74: }
75: }
76:
77: ?>
78: