Constructs the info array.
The meat of this class.
23 {
25 array('left', 'right', 'center', 'justify'),
26 false
27 );
28
30 $this->
info[
'border-bottom-style'] =
31 $this->
info[
'border-right-style'] =
32 $this->
info[
'border-left-style'] =
34 array(
35 'none',
36 'hidden',
37 'dotted',
38 'dashed',
39 'solid',
40 'double',
41 'groove',
42 'ridge',
43 'inset',
44 'outset'
45 ),
46 false
47 );
48
50
52 array('none', 'left', 'right', 'both'),
53 false
54 );
56 array('none', 'left', 'right'),
57 false
58 );
60 array('normal', 'italic', 'oblique'),
61 false
62 );
64 array('normal', 'small-caps'),
65 false
66 );
67
69 array(
72 )
73 );
74
76 array('inside', 'outside'),
77 false
78 );
80 array(
81 'disc',
82 'circle',
83 'square',
84 'decimal',
85 'lower-roman',
86 'upper-roman',
87 'lower-alpha',
88 'upper-alpha',
89 'none'
90 ),
91 false
92 );
93 $this->
info[
'list-style-image'] = $uri_or_none;
94
96
98 array('capitalize', 'uppercase', 'lowercase', 'none'),
99 false
100 );
102
103 $this->
info[
'background-image'] = $uri_or_none;
105 array('repeat', 'repeat-x', 'repeat-y', 'no-repeat')
106 );
108 array('scroll', 'fixed')
109 );
111
112 $border_color =
113 $this->
info[
'border-top-color'] =
114 $this->
info[
'border-bottom-color'] =
115 $this->
info[
'border-left-color'] =
116 $this->
info[
'border-right-color'] =
118 array(
121 )
122 );
123
125
127
128 $border_width =
129 $this->
info[
'border-top-width'] =
130 $this->
info[
'border-bottom-width'] =
131 $this->
info[
'border-left-width'] =
133 array(
136 )
137 );
138
140
142 array(
145 )
146 );
147
149 array(
152 )
153 );
154
156 array(
158 array(
159 'xx-small',
160 'x-small',
161 'small',
162 'medium',
163 'large',
164 'x-large',
165 'xx-large',
166 'larger',
167 'smaller'
168 )
169 ),
172 )
173 );
174
176 array(
181 )
182 );
183
184 $margin =
185 $this->
info[
'margin-top'] =
186 $this->
info[
'margin-bottom'] =
187 $this->
info[
'margin-left'] =
189 array(
193 )
194 );
195
197
198
199 $padding =
200 $this->
info[
'padding-top'] =
201 $this->
info[
'padding-bottom'] =
202 $this->
info[
'padding-left'] =
204 array(
207 )
208 );
209
211
213 array(
216 )
217 );
218
220 array(
224 )
225 );
227 array(
231 )
232 );
234 array(
238 )
239 );
240 $max =
$config->get(
'CSS.MaxImgLength');
241
242 $this->
info[
'width'] =
243 $this->
info[
'height'] =
244 $max === null ?
245 $trusted_wh :
247 'img',
248
250 array(
253 )
254 ),
255
256 $trusted_wh
257 );
258 $this->
info[
'min-width'] =
259 $this->
info[
'min-height'] =
260 $max === null ?
261 $trusted_min_wh :
263 'img',
264
266 array(
269 )
270 ),
271
272 $trusted_min_wh
273 );
274 $this->
info[
'max-width'] =
275 $this->
info[
'max-height'] =
276 $max === null ?
277 $trusted_max_wh :
279 'img',
280
282 array(
285 )
286 ),
287
288 $trusted_max_wh
289 );
290
292
294
295
297 array(
298 'normal',
299 'bold',
300 'bolder',
301 'lighter',
302 '100',
303 '200',
304 '300',
305 '400',
306 '500',
307 '600',
308 '700',
309 '800',
310 '900'
311 ),
312 false
313 );
314
315
316
318
319
320 $this->
info[
'border'] =
321 $this->
info[
'border-bottom'] =
322 $this->
info[
'border-top'] =
323 $this->
info[
'border-left'] =
325
327 array('collapse', 'separate')
328 );
329
331 array('top', 'bottom')
332 );
333
335 array('auto', 'fixed')
336 );
337
339 array(
341 array(
342 'baseline',
343 'sub',
344 'super',
345 'top',
346 'text-top',
347 'middle',
348 'bottom',
349 'text-bottom'
350 )
351 ),
354 )
355 );
356
358
359
360
362 array('nowrap', 'normal', 'pre', 'pre-wrap', 'pre-line')
363 );
364
365 if (
$config->get(
'CSS.Proprietary')) {
367 }
368
369 if (
$config->get(
'CSS.AllowTricky')) {
371 }
372
373 if (
$config->get(
'CSS.Trusted')) {
375 }
376
377 $allow_important =
$config->get(
'CSS.AllowImportant');
378
379 foreach ($this->
info as $k => $v) {
381 }
382
384 }
Validates the value of background-position.
Validates shorthand CSS property background.
Validates the border property as defined by CSS.
Validates Color as defined by CSS.
Allows multiple validators to attempt to validate attribute.
Validates a font family list according to CSS spec.
Validates shorthand CSS property font.
Decorator which enables !important to be used in CSS values.
Represents a Length as defined by CSS.
Validates shorthand CSS property list-style.
Framework class for strings that involve multiple values.
Validates a number as defined by the CSS spec.
Validates a Percentage as defined by the CSS spec.
Validates the value for the CSS property text-decoration.
Validates a URI in CSS syntax, which uses url('http://example.com')
Validates a keyword against a list of valid values.
Decorator that, depending on a token, switches between two definitions.
setupConfigStuff($config)
Performs extra config-based processing.
doSetupProprietary($config)