ILIAS
Release_4_2_x_branch Revision 61807
◀ 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
18
public
$inline
;
19
23
public
$block
;
24
25
public
$type
=
'chameleon'
;
26
31
public
function
__construct
(
$inline
,
$block
) {
32
$this->
inline
=
new
HTMLPurifier_ChildDef_Optional
(
$inline
);
33
$this->block =
new
HTMLPurifier_ChildDef_Optional
(
$block
);
34
$this->elements = $this->block->elements;
35
}
36
37
public
function
validateChildren
($tokens_of_children,
$config
, $context) {
38
if
($context->get(
'IsInline'
) ===
false
) {
39
return
$this->block->validateChildren(
40
$tokens_of_children,
$config
, $context);
41
}
else
{
42
return
$this->
inline
->validateChildren(
43
$tokens_of_children,
$config
, $context);
44
}
45
}
46
}
47
48
// vim: et sw=4 sts=4
Services
Html
HtmlPurifier
library
HTMLPurifier
ChildDef
Chameleon.php
Generated on Fri Apr 22 2016 19:04:09 for ILIAS by
1.8.1.2 (using
Doxyfile
)