ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Bdo.php
Go to the documentation of this file.
1 <?php
2 
8 {
9 
13  public $name = 'Bdo';
14 
19  'I18N' => array('dir' => false)
20  );
21 
25  public function setup($config)
26  {
27  $bdo = $this->addElement(
28  'bdo',
29  'Inline',
30  'Inline',
31  array('Core', 'Lang'),
32  array(
33  'dir' => 'Enum#ltr,rtl', // required
34  // The Abstract Module specification has the attribute
35  // inclusions wrong for bdo: bdo allows Lang
36  )
37  );
38  $bdo->attr_transform_post[] = new HTMLPurifier_AttrTransform_BdoDir();
39 
40  $this->attr_collections['I18N']['dir'] = 'Enum#ltr,rtl';
41  }
42 }
43 
44 // 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:144
Create styles array
The data for the language used.
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