PHPIDS
Current file: /home/mario/workspace/php-ids.org/trunk/lib/IDS/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Object.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% 23 / 23
 
HTMLPurifier_HTMLModule_Object
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 23 / 23
 public function __construct()
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 22 / 22


       1                 : <?php                                                                                      
       2                 :                                                                                            
       3                 : /**                                                                                        
       4                 :  * XHTML 1.1 Object Module, defines elements for generic object inclusion                  
       5                 :  * @warning Users will commonly use <embed> to cater to legacy browsers: this              
       6                 :  *      module does not allow this sort of behavior                                        
       7                 :  */                                                                                        
       8               1 : class HTMLPurifier_HTMLModule_Object extends HTMLPurifier_HTMLModule                       
       9                 : {                                                                                          
      10                 :                                                                                            
      11                 :     public $name = 'Object';                                                               
      12                 :     public $safe = false;                                                                  
      13                 :                                                                                            
      14                 :     public function __construct() {                                                        
      15                 :                                                                                            
      16               1 :         $this->addElement('object', 'Inline', 'Optional: #PCDATA | Flow | param', 'Common',
      17                 :             array(                                                                         
      18               1 :                 'archive' => 'URI',                                                        
      19               1 :                 'classid' => 'URI',                                                        
      20               1 :                 'codebase' => 'URI',                                                       
      21               1 :                 'codetype' => 'Text',                                                      
      22               1 :                 'data' => 'URI',                                                           
      23               1 :                 'declare' => 'Bool#declare',                                               
      24               1 :                 'height' => 'Length',                                                      
      25               1 :                 'name' => 'CDATA',                                                         
      26               1 :                 'standby' => 'Text',                                                       
      27               1 :                 'tabindex' => 'Number',                                                    
      28               1 :                 'type' => 'ContentType',                                                   
      29                 :                 'width' => 'Length'                                                        
      30               1 :             )                                                                              
      31               1 :         );                                                                                 
      32                 :                                                                                            
      33               1 :         $this->addElement('param', false, 'Empty', false,                                  
      34                 :             array(                                                                         
      35               1 :                 'id' => 'ID',                                                              
      36               1 :                 'name*' => 'Text',                                                         
      37               1 :                 'type' => 'Text',                                                          
      38               1 :                 'value' => 'Text',                                                         
      39                 :                 'valuetype' => 'Enum#data,ref,object'                                      
      40               1 :            )                                                                               
      41               1 :         );                                                                                 
      42                 :                                                                                            
      43               1 :     }                                                                                      
      44                 :                                                                                            
      45                 : }                                                                                          
      46                 :                                                                                            

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