Source for file BdoDir.php

Documentation is available at BdoDir.php

  1. <?php
  2.  
  3. // this MUST be placed in post, as it assumes that any value in dir is valid
  4.  
  5. /**
  6.  * Post-trasnform that ensures that bdo tags have the dir attribute set.
  7.  */
  8. {
  9.     
  10.     public function transform($attr$config$context{
  11.         if (isset($attr['dir'])) return $attr;
  12.         $attr['dir'$config->get('Attr''DefaultTextDir');
  13.         return $attr;
  14.     }
  15.     
  16. }

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