1: <?php
2: 3: 4: 5: 6:
7:
8: if (!defined('XOOPS_ROOT_PATH')) exit();
9:
10: require_once XOOPS_MODULE_PATH . "/profile/class/AbstractViewAction.class.php";
11:
12: class Profile_Admin_DefinitionsViewAction extends Profile_AbstractViewAction
13: {
14: 15: 16:
17: function _getId()
18: {
19: return intval(xoops_getrequest('field_id'));
20: }
21:
22: 23: 24:
25: function &_getHandler()
26: {
27: $handler =& $this->mAsset->load('handler', "definitions");
28: return $handler;
29: }
30:
31: 32: 33:
34: function executeViewSuccess(&$render)
35: {
36: $render->setTemplateName("definitions_view.html");
37:
38: $render->setAttribute('object', $this->mObject);
39: }
40:
41: 42: 43:
44: function executeViewError(&$render)
45: {
46: $this->mRoot->mController->executeRedirect("./index.php?action=DefinitionsList", 1, _MD_PROFILE_ERROR_CONTENT_IS_NOT_FOUND);
47: }
48: }
49:
50: ?>
51: