|
1 | 1 | <?php |
2 | 2 |
|
| 3 | + |
3 | 4 | /** |
4 | | - * The MetaModels extension allows the creation of multiple collections of custom items, |
5 | | - * each with its own unique set of selectable attributes, with attribute extendability. |
6 | | - * The Front-End modules allow you to build powerful listing and filtering of the |
7 | | - * data in each collection. |
| 5 | + * This file is part of MetaModels/filter_range. |
| 6 | + * |
| 7 | + * (c) 2012-2018 The MetaModels team. |
| 8 | + * |
| 9 | + * For the full copyright and license information, please view the LICENSE |
| 10 | + * file that was distributed with this source code. |
| 11 | + * |
| 12 | + * This project is provided in good faith and hope to be usable by anyone. |
8 | 13 | * |
9 | 14 | * @package MetaModels |
10 | 15 | * @subpackage FilterRange |
11 | 16 | * @author Christian Schiffler <c.schiffler@cyberspectrum.de> |
12 | 17 | * @author Stefan Heimes <stefan_heimes@hotmail.com> |
13 | 18 | * @author Andreas Isaak <info@andreas-isaak.de> |
14 | 19 | * @author Christian de la Haye <service@delahaye.de> |
15 | | - * @copyright 2015 The MetaModels team. |
| 20 | + * @author Ingolf Steinhardt <info@e-spin.de> |
| 21 | + * @copyright 2012-2018 The MetaModels team. |
16 | 22 | * @license https://github.com/MetaModels/filter_range/blob/master/LICENSE LGPL-3.0 |
17 | 23 | * @filesource |
18 | 24 | */ |
|
60 | 66 |
|
61 | 67 | $GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['moreequal'] = array |
62 | 68 | ( |
63 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['moreequal'], |
64 | | - 'exclude' => true, |
65 | | - 'default' => true, |
66 | | - 'inputType' => 'checkbox', |
67 | | - 'eval' => array |
| 69 | + 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['moreequal'], |
| 70 | + 'exclude' => true, |
| 71 | + 'default' => true, |
| 72 | + 'inputType' => 'checkbox', |
| 73 | + 'sql' => 'char(1) NOT NULL default \'1\'', |
| 74 | + 'eval' => array |
68 | 75 | ( |
69 | | - 'tl_class' => 'w50' |
| 76 | + 'tl_class' => 'w50' |
70 | 77 | ) |
71 | 78 | ); |
72 | 79 |
|
73 | 80 | $GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['lessequal'] = array |
74 | 81 | ( |
75 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['lessequal'], |
76 | | - 'exclude' => true, |
77 | | - 'default' => true, |
78 | | - 'inputType' => 'checkbox', |
79 | | - 'eval' => array |
| 82 | + 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['lessequal'], |
| 83 | + 'exclude' => true, |
| 84 | + 'default' => true, |
| 85 | + 'inputType' => 'checkbox', |
| 86 | + 'sql' => 'char(1) NOT NULL default \'1\'', |
| 87 | + 'eval' => array |
80 | 88 | ( |
81 | | - 'tl_class' => 'w50' |
| 89 | + 'tl_class' => 'w50' |
82 | 90 | ) |
83 | 91 | ); |
84 | 92 |
|
85 | 93 | $GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['fromfield'] = array |
86 | 94 | ( |
87 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['fromfield'], |
88 | | - 'exclude' => true, |
89 | | - 'default' => true, |
90 | | - 'inputType' => 'checkbox', |
91 | | - 'eval' => array |
| 95 | + 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['fromfield'], |
| 96 | + 'exclude' => true, |
| 97 | + 'default' => true, |
| 98 | + 'inputType' => 'checkbox', |
| 99 | + 'sql' => 'char(1) NOT NULL default \'1\'', |
| 100 | + 'eval' => array |
92 | 101 | ( |
93 | | - 'tl_class' => 'w50', |
| 102 | + 'tl_class' => 'w50', |
94 | 103 | ), |
95 | 104 | ); |
96 | 105 |
|
97 | 106 | $GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['tofield'] = array |
98 | 107 | ( |
99 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['tofield'], |
100 | | - 'exclude' => true, |
101 | | - 'default' => true, |
102 | | - 'inputType' => 'checkbox', |
103 | | - 'eval' => array |
| 108 | + 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['tofield'], |
| 109 | + 'exclude' => true, |
| 110 | + 'default' => true, |
| 111 | + 'inputType' => 'checkbox', |
| 112 | + 'sql' => 'char(1) NOT NULL default \'1\'', |
| 113 | + 'eval' => array |
104 | 114 | ( |
105 | | - 'tl_class' => 'w50', |
| 115 | + 'tl_class' => 'w50', |
106 | 116 | ), |
107 | 117 | ); |
108 | 118 |
|
109 | 119 | $GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['dateformat'] = array |
110 | 120 | ( |
111 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['dateformat'], |
112 | | - 'exclude' => true, |
113 | | - 'inputType' => 'text', |
114 | | - 'eval' => array |
| 121 | + 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['dateformat'], |
| 122 | + 'exclude' => true, |
| 123 | + 'inputType' => 'text', |
| 124 | + 'sql' => 'char(32) NOT NULL default \'\'', |
| 125 | + 'eval' => array |
115 | 126 | ( |
116 | | - 'tl_class' => 'w50' |
| 127 | + 'tl_class' => 'w50' |
117 | 128 | ) |
118 | 129 | ); |
119 | 130 |
|
120 | 131 | $GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['timetype'] = array |
121 | 132 | ( |
122 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['timetype'], |
123 | | - 'exclude' => true, |
124 | | - 'inputType' => 'select', |
125 | | - 'reference' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['timetypeOptions'], |
126 | | - 'options' => array |
| 133 | + 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['timetype'], |
| 134 | + 'exclude' => true, |
| 135 | + 'inputType' => 'select', |
| 136 | + 'reference' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['timetypeOptions'], |
| 137 | + 'options' => array |
127 | 138 | ( |
128 | 139 | 'time', |
129 | 140 | 'date', |
130 | 141 | 'datim' |
131 | 142 | ), |
132 | | - 'eval' => array |
| 143 | + 'sql' => 'varchar(64) NOT NULL default \'\'', |
| 144 | + 'eval' => array |
133 | 145 | ( |
134 | | - 'doNotSaveEmpty' => true, |
135 | | - 'tl_class' => 'w50' |
| 146 | + 'doNotSaveEmpty' => true, |
| 147 | + 'tl_class' => 'w50' |
136 | 148 | ) |
137 | 149 | ); |
138 | 150 |
|
139 | 151 | $GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['attr_id2'] = array |
140 | 152 | ( |
141 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['attr_id2'], |
| 153 | + 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['attr_id2'], |
142 | 154 | 'exclude' => true, |
143 | 155 | 'inputType' => 'select', |
| 156 | + 'sql' => 'int(10) unsigned NOT NULL default \'0\'', |
144 | 157 | 'eval' => array |
145 | 158 | ( |
146 | 159 | 'doNotSaveEmpty' => true, |
|
152 | 165 | 'chosen' => true |
153 | 166 | ), |
154 | 167 | ); |
155 | | - |
156 | | -$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['fromfield'] = array |
157 | | -( |
158 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['fromfield'], |
159 | | - 'exclude' => true, |
160 | | - 'default' => true, |
161 | | - 'inputType' => 'checkbox', |
162 | | - 'eval' => array |
163 | | - ( |
164 | | - 'tl_class' => 'w50 clr' |
165 | | - ) |
166 | | -); |
167 | | - |
168 | | -$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['tofield'] = array |
169 | | -( |
170 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['tofield'], |
171 | | - 'exclude' => true, |
172 | | - 'default' => true, |
173 | | - 'inputType' => 'checkbox', |
174 | | - 'eval' => array |
175 | | - ( |
176 | | - 'tl_class' => 'w50' |
177 | | - ) |
178 | | -); |
0 commit comments