ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
Composite.php
Go to the documentation of this file.
1
<?
php
2
12
class
HTMLPurifier_AttrDef_CSS_Composite
extends
HTMLPurifier_AttrDef
13
{
14
20
public
$defs
;
21
25
public
function
__construct
(
$defs
)
26
{
27
$this->defs =
$defs
;
28
}
29
36
public
function
validate
($string,
$config
, $context)
37
{
38
foreach
($this->defs as $i => $def) {
39
$result
= $this->defs[$i]->validate($string,
$config
, $context);
40
if
(
$result
!==
false
) {
41
return
$result
;
42
}
43
}
44
return
false
;
45
}
46
}
47
48
// vim: et sw=4 sts=4
$config
$config
Definition:
flush-definition-cache.php:23
HTMLPurifier_AttrDef
Base class for all validating attribute definitions.
Definition:
AttrDef.php:13
$result
$result
Definition:
CleanUpTest.php:407
HTMLPurifier_AttrDef_CSS_Composite
Allows multiple validators to attempt to validate attribute.
Definition:
Composite.php:12
HTMLPurifier_AttrDef_CSS_Composite\$defs
$defs
List of objects that may process strings.
Definition:
Composite.php:20
HTMLPurifier_AttrDef_CSS_Composite\validate
validate($string, $config, $context)
Definition:
Composite.php:36
HTMLPurifier_AttrDef_CSS_Composite\__construct
__construct($defs)
Definition:
Composite.php:25
php
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
AttrDef
CSS
Composite.php
Generated on Fri Jan 17 2025 19:00:49 for ILIAS by
1.8.13 (using
Doxyfile
)