ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
Bdo.php
Go to the documentation of this file.
1 <?php
2 
8 {
9 
10  public $name = 'Bdo';
11  public $attr_collections = array(
12  'I18N' => array('dir' => false)
13  );
14 
15  public function setup($config) {
16  $bdo = $this->addElement(
17  'bdo', 'Inline', 'Inline', array('Core', 'Lang'),
18  array(
19  'dir' => 'Enum#ltr,rtl', // required
20  // The Abstract Module specification has the attribute
21  // inclusions wrong for bdo: bdo allows Lang
22  )
23  );
24  $bdo->attr_transform_post[] = new HTMLPurifier_AttrTransform_BdoDir();
25 
26  $this->attr_collections['I18N']['dir'] = 'Enum#ltr,rtl';
27  }
28 
29 }
30 
31 // vim: et sw=4 sts=4
addElement($element, $type, $contents, $attr_includes=array(), $attr=array())
Convenience function that sets up a new element.
Definition: HTMLModule.php:130
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
Definition: HTMLModule.php:18
XHTML 1.1 Bi-directional Text Module, defines elements that declare directionality of content...
Definition: Bdo.php:7
Post-trasnform that ensures that bdo tags have the dir attribute set.
Definition: BdoDir.php:8