1: <?php
2:
3: if (!defined('XOOPS_ROOT_PATH')) exit();
4:
5: require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractFilterForm.class.php";
6:
7: define('TPLSET_SORT_KEY_TPLSET_ID', 1);
8: define('TPLSET_SORT_KEY_TPLSET_NAME', 2);
9: define('TPLSET_SORT_KEY_TPLSET_DESC', 3);
10: define('TPLSET_SORT_KEY_TPLSET_CREDITS', 4);
11: define('TPLSET_SORT_KEY_TPLSET_CREATED', 5);
12:
13: define('TPLSET_SORT_KEY_DEFAULT', TPLSET_SORT_KEY_TPLSET_ID);
14: define('TPLSET_SORT_KEY_MAXVALUE', 5);
15:
16: class LegacyRender_TplsetFilterForm extends LegacyRender_AbstractFilterForm
17: {
18: var $mSortKeys = array(
19: TPLSET_SORT_KEY_DEFAULT => 'tplset_id',
20: TPLSET_SORT_KEY_TPLSET_ID => 'tplset_id',
21: TPLSET_SORT_KEY_TPLSET_NAME => 'tplset_name',
22: TPLSET_SORT_KEY_TPLSET_DESC => 'tplset_desc',
23: TPLSET_SORT_KEY_TPLSET_CREDITS => 'tplset_credits',
24: TPLSET_SORT_KEY_TPLSET_CREATED => 'tplset_created'
25: );
26:
27: function getDefaultSortKey()
28: {
29: return TPLSET_SORT_KEY_DEFAULT;
30: }
31:
32: function fetch()
33: {
34: parent::fetch();
35:
36: $this->_mCriteria->addSort($this->getSort(), $this->getOrder());
37: }
38: }
39:
40: ?>
41: