ILIAS
release_4-4 Revision
◀ ilDoc Overview
SafeEmbed.php
Go to the documentation of this file.
1
<?php
2
6
class
HTMLPurifier_HTMLModule_SafeEmbed
extends
HTMLPurifier_HTMLModule
7
{
8
9
public
$name
=
'SafeEmbed'
;
10
11
public
function
setup
($config) {
12
13
$max = $config->get(
'HTML.MaxImgLength'
);
14
$embed = $this->
addElement
(
15
'embed'
,
'Inline'
,
'Empty'
,
'Common'
,
16
array(
17
'src*'
=>
'URI#embedded'
,
18
'type'
=>
'Enum#application/x-shockwave-flash'
,
19
'width'
=>
'Pixels#'
. $max,
20
'height'
=>
'Pixels#'
. $max,
21
'allowscriptaccess'
=>
'Enum#never'
,
22
'allownetworking'
=>
'Enum#internal'
,
23
'flashvars'
=>
'Text'
,
24
'wmode'
=>
'Enum#window,transparent,opaque'
,
25
'name'
=>
'ID'
,
26
)
27
);
28
$embed->attr_transform_post[] =
new
HTMLPurifier_AttrTransform_SafeEmbed
();
29
30
}
31
32
}
33
34
// vim: et sw=4 sts=4
HTMLPurifier_HTMLModule_SafeEmbed\setup
setup($config)
Definition:
SafeEmbed.php:11
HTMLPurifier_HTMLModule_SafeEmbed\$name
$name
Definition:
SafeEmbed.php:9
HTMLPurifier_HTMLModule_SafeEmbed
A "safe" embed module.
Definition:
SafeEmbed.php:6
HTMLPurifier_HTMLModule\addElement
addElement($element, $type, $contents, $attr_includes=array(), $attr=array())
Convenience function that sets up a new element.
Definition:
HTMLModule.php:130
HTMLPurifier_HTMLModule
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
Definition:
HTMLModule.php:18
HTMLPurifier_AttrTransform_SafeEmbed
Definition:
SafeEmbed.php:3
Services
Html
HtmlPurifier
library
HTMLPurifier
HTMLModule
SafeEmbed.php
Generated on Mon Dec 21 2020 19:01:15 for ILIAS by
1.8.13 (using
Doxyfile
)