XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
DefinitionsViewAction.class.php
1<?php
10
11if (!defined('XOOPS_ROOT_PATH')) {
12 exit();
13}
14
15require_once XOOPS_MODULE_PATH . '/profile/class/AbstractViewAction.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
41 public function executeViewSuccess(&$controller, &$render)
42 {
43 $render->setTemplateName('definitions_view.html');
44 #cubson::lazy_load('definitions', $this->mObject);
45 $render->setAttribute('object', $this->mObject);
46 }
47
52 public function executeViewError(&$render)
53 {
54 $this->mRoot->mController->executeRedirect('./index.php?action=DefinitionsList', 1, _MD_PROFILE_ERROR_CONTENT_IS_NOT_FOUND);
55 }
56}