XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
DataViewAction.class.php
1
<?php
9
10
if
(!defined(
'XOOPS_ROOT_PATH'
)) {
11
exit();
12
}
13
14
require_once XOOPS_MODULE_PATH .
'/profile/class/AbstractViewAction.class.php'
;
15
16
class
Profile_DataViewAction
extends
Profile_AbstractViewAction
17
{
18
public
$mFieldArr = [];
19
23
public
function
_getId()
24
{
25
return
(
int
)xoops_getrequest(
'uid'
);
26
}
27
31
public
function
&_getHandler()
32
{
33
$handler =& $this->mAsset->load(
'handler'
,
'data'
);
34
return
$handler;
35
}
36
37
public
function
prepare()
38
{
39
parent::prepare();
40
$dHandler =& xoops_getmodulehandler(
'definitions'
);
41
$this->mFieldArr = $dHandler->getFields4DataShow($this->_getId());
42
}
43
48
public
function
executeViewSuccess
(&$render)
49
{
50
$render->setTemplateName(
'profile_data_view.html'
);
51
$render->setAttribute(
'object'
, $this->mObject);
52
$render->setAttribute(
'fields'
, $this->mFieldArr);
53
}
54
59
public
function
executeViewError
(&$render)
60
{
61
$this->mRoot->mController->executeRedirect(
'./index.php?action=DataList'
, 1, _MD_PROFILE_ERROR_CONTENT_IS_NOT_FOUND);
62
}
63
}
Profile_AbstractViewAction
Definition
AbstractViewAction.class.php:16
Profile_DataViewAction
Definition
DataViewAction.class.php:17
Profile_DataViewAction\executeViewSuccess
executeViewSuccess(&$render)
Definition
DataViewAction.class.php:48
Profile_DataViewAction\executeViewError
executeViewError(&$render)
Definition
DataViewAction.class.php:59
html
modules
profile
actions
DataViewAction.class.php
Generated by
1.13.2