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
Optional.php
Go to the documentation of this file.
1
<?php
2
10
class
HTMLPurifier_ChildDef_Optional
extends
HTMLPurifier_ChildDef_Required
11
{
15
public
$allow_empty
=
true
;
16
20
public
$type
=
'optional'
;
21
28
public
function
validateChildren
($children, $config, $context)
29
{
30
$result
=
parent::validateChildren
($children, $config, $context);
31
// we assume that $children is not modified
32
if
(
$result
===
false
) {
33
if
(empty($children)) {
34
return
true
;
35
} elseif ($this->whitespace) {
36
return
$children;
37
}
else
{
38
return
array();
39
}
40
}
41
return
$result
;
42
}
43
}
44
45
// vim: et sw=4 sts=4
Services
Html
HtmlPurifier
library
HTMLPurifier
ChildDef
Optional.php
Generated on Wed Apr 27 2016 21:01:40 for ILIAS by
1.8.1.2 (using
Doxyfile
)