Source for file Bdo.php

Documentation is available at Bdo.php

  1. <?php
  2.  
  3. /**
  4.  * XHTML 1.1 Bi-directional Text Module, defines elements that
  5.  * declare directionality of content. Text Extension Module.
  6.  */
  7. {
  8.     
  9.     public $name = 'Bdo';
  10.     public $attr_collections = array(
  11.         'I18N' => array('dir' => false)
  12.     );
  13.     
  14.     public function setup($config{
  15.         $bdo $this->addElement(
  16.             'bdo''Inline''Inline'array('Core''Lang'),
  17.             array(
  18.                 'dir' => 'Enum#ltr,rtl'// required
  19.                 // The Abstract Module specification has the attribute
  20.                 // inclusions wrong for bdo: bdo allows Lang
  21.             )
  22.         );
  23.         $bdo->attr_transform_post['required-dir'new HTMLPurifier_AttrTransform_BdoDir();
  24.         
  25.         $this->attr_collections['I18N']['dir''Enum#ltr,rtl';
  26.     }
  27.     
  28. }

Documentation generated on Thu, 19 Jun 2008 18:48:53 -0400 by phpDocumentor 1.4.2