ILIAS
Release_5_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
Chameleon.php
Go to the documentation of this file.
1
<?php
2
12
class
HTMLPurifier_ChildDef_Chameleon
extends
HTMLPurifier_ChildDef
13
{
14
19
public
$inline
;
20
25
public
$block
;
26
30
public
$type
=
'chameleon'
;
31
36
public
function
__construct
(
$inline
,
$block
)
37
{
38
$this->
inline
=
new
HTMLPurifier_ChildDef_Optional
(
$inline
);
39
$this->block =
new
HTMLPurifier_ChildDef_Optional
(
$block
);
40
$this->elements = $this->block->elements;
41
}
42
49
public
function
validateChildren
($children, $config, $context)
50
{
51
if
($context->get(
'IsInline'
) ===
false
) {
52
return
$this->block->validateChildren(
53
$children,
54
$config,
55
$context
56
);
57
}
else
{
58
return
$this->
inline
->validateChildren(
59
$children,
60
$config,
61
$context
62
);
63
}
64
}
65
}
66
67
// vim: et sw=4 sts=4
Services
Html
HtmlPurifier
library
HTMLPurifier
ChildDef
Chameleon.php
Generated on Wed Apr 27 2016 21:01:40 for ILIAS by
1.8.1.2 (using
Doxyfile
)