PHPIDS
Current file: /home/mario/workspace/php-ids.org/trunk/lib/IDS/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Bdo.php
Legend: executed not executed dead code

  Coverage
  Classes Methods Lines
Total
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 8 / 8
 
HTMLPurifier_HTMLModule_Bdo
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 8 / 8
 public function __construct()
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 7 / 7


       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               1 : class HTMLPurifier_HTMLModule_Bdo extends HTMLPurifier_HTMLModule                           
       8                 : {                                                                                           
       9                 :                                                                                             
      10                 :     public $name = 'Bdo';                                                                   
      11                 :     public $attr_collections = array(                                                       
      12                 :         'I18N' => array('dir' => false)                                                     
      13                 :     );                                                                                      
      14                 :                                                                                             
      15                 :     public function __construct() {                                                         
      16               1 :         $bdo = $this->addElement(                                                           
      17               1 :             'bdo', 'Inline', 'Inline', array('Core', 'Lang'),                               
      18                 :             array(                                                                          
      19               1 :                 'dir' => 'Enum#ltr,rtl', // required                                        
      20                 :                 // The Abstract Module specification has the attribute                      
      21                 :                 // inclusions wrong for bdo: bdo allows Lang                                
      22                 :             )                                                                               
      23               1 :         );                                                                                  
      24               1 :         $bdo->attr_transform_post['required-dir'] = new HTMLPurifier_AttrTransform_BdoDir();
      25                 :                                                                                             
      26               1 :         $this->attr_collections['I18N']['dir'] = 'Enum#ltr,rtl';                            
      27               1 :     }                                                                                       
      28                 :                                                                                             
      29                 : }                                                                                           
      30                 :                                                                                             

Generated by PHPUnit 3.2.20 and Xdebug 2.0.3 at Sat Jun 7 16:15:42 CEST 2008.