ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
Iframe.php
Go to the documentation of this file.
1<?php
2
11{
12
16 public $name = 'Iframe';
17
21 public $safe = false;
22
26 public function setup($config)
27 {
28 if ($config->get('HTML.SafeIframe')) {
29 $this->safe = true;
30 }
31 $this->addElement(
32 'iframe',
33 'Inline',
34 'Flow',
35 'Common',
36 array(
37 'src' => 'URI#embedded',
38 'width' => 'Length',
39 'height' => 'Length',
40 'name' => 'ID',
41 'scrolling' => 'Enum#yes,no,auto',
42 'frameborder' => 'Enum#0,1',
43 'longdesc' => 'URI',
44 'marginheight' => 'Pixels',
45 'marginwidth' => 'Pixels',
46 )
47 );
48 }
49}
50
51// vim: et sw=4 sts=4
XHTML 1.1 Iframe Module provides inline frames.
Definition: Iframe.php:11
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
Definition: HTMLModule.php:19
addElement($element, $type, $contents, $attr_includes=array(), $attr=array())
Convenience function that sets up a new element.
Definition: HTMLModule.php:144