1: <?php
2: 3: 4: 5: 6:
7:
8: if (!defined('XOOPS_ROOT_PATH')) exit();
9:
10: require_once XOOPS_MODULE_PATH . "/profile/class/AbstractListAction.class.php";
11:
12: class Profile_DataListAction extends Profile_AbstractListAction
13: {
14: 15: 16:
17: function &_getHandler()
18: {
19: $handler =& $this->mAsset->load('handler', "data");
20: return $handler;
21: }
22:
23: 24: 25:
26: function &_getFilterForm()
27: {
28:
29: $filter =& $this->mAsset->create('filter', "data");
30: $filter->prepare($this->_getPageNavi(), $this->_getHandler());
31: return $filter;
32: }
33:
34: 35: 36:
37: function _getBaseUrl()
38: {
39: return "./index.php?action=DataList";
40: }
41:
42: 43: 44:
45: function executeViewIndex(&$render)
46: {
47: $render->setTemplateName("profile_data_list.html");
48: $render->setAttribute('objects', $this->mObjects);
49: $render->setAttribute('pageNavi', $this->mFilter->mNavi);
50: $handler = Legacy_Utils::getModuleHandler('definitions', 'profile');
51: $render->setAttribute('definitions', $handler->getFields4DataShow(Legacy_Utils::getUid()));
52: }
53: }
54:
55: ?>
56: