1: <?php
2:
3: if (!defined('XOOPS_ROOT_PATH')) exit();
4:
5: require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/TplfileFilterForm.class.php";
6:
7: 8: 9: 10:
11: class LegacyRender_TplfileSetFilterForm extends LegacyRender_TplfileFilterForm
12: {
13: function additionalFetch()
14: {
15: if (isset($_REQUEST['tpl_module'])) {
16: $this->mNavi->addExtra('tpl_module', xoops_getrequest('tpl_module'));
17: $this->_mCriteria->add(new Criteria('tpl_module', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_module'))));
18:
19: $handler =& xoops_gethandler('module');
20: $this->mModule =& $handler->getByDirname(xoops_getrequest('tpl_module'));
21: }
22:
23: if (isset($_REQUEST['tpl_tplset'])) {
24: $this->mNavi->addExtra('tpl_tplset', xoops_getrequest('tpl_tplset'));
25:
26:
27:
28:
29:
30:
31: $subCriteria =new CriteriaCompo();
32: $subCriteria->add(new Criteria('tpl_tplset', 'default'), 'OR');
33:
34: $handler =& xoops_getmodulehandler('tplset');
35: $tplsets =& $handler->getObjects(new Criteria('tplset_name', xoops_getrequest('tpl_tplset')));
36: if (count($tplsets) > 0) {
37: $subCriteria->add(new Criteria('tpl_tplset', xoops_getrequest('tpl_tplset')));
38: $this->mTplset =& $tplsets[0];
39: }
40: }
41:
42: if (isset($_REQUEST['tpl_type'])) {
43: $this->mNavi->addExtra('tpl_type', xoops_getrequest('tpl_type'));
44: $this->_mCriteria->add(new Criteria('tpl_type', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_type'))));
45: }
46:
47: if (isset($_REQUEST['tpl_file'])) {
48: $this->mNavi->addExtra('tpl_file', xoops_getrequest('tpl_file'));
49: $this->_mCriteria->add(new Criteria('tpl_file', '%' . xoops_getrequest('tpl_file') . '%', 'LIKE'));
50: }
51:
52:
53:
54:
55: if ($this->mModule != null && $this->mTplset != null) {
56: $this->mNavi->setPerpage(0);
57: $this->mNavi->freezePerpage();
58: }
59:
60: $this->_mCriteria->addSort($this->getSort(), $this->getOrder());
61: }
62: }
63:
64: ?>
65: