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

  Coverage
  Classes Methods Lines
Total
100.00 %100.00%
100.00% 1 / 1
0.00 %0.00%
0.00% 0 / 1
20.00 %20.00%
20.00% 1 / 5
 
HTMLPurifier_Definition
100.00 %100.00%
100.00% 1 / 1
0.00 %0.00%
0.00% 0 / 1
20.00 %20.00%
20.00% 1 / 5
 public function setup($config)
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 4


       1                 : <?php                                                                   
       2                 :                                                                         
       3                 : /**                                                                     
       4                 :  * Super-class for definition datatype objects, implements serialization
       5                 :  * functions for the class.                                             
       6                 :  */                                                                     
       7                 : abstract class HTMLPurifier_Definition                                  
       8               1 : {                                                                       
       9                 :                                                                         
      10                 :     /**                                                                 
      11                 :      * Has setup() been called yet?                                     
      12                 :      */                                                                 
      13                 :     public $setup = false;                                              
      14                 :                                                                         
      15                 :     /**                                                                 
      16                 :      * What type of definition is it?                                   
      17                 :      */                                                                 
      18                 :     public $type;                                                       
      19                 :                                                                         
      20                 :     /**                                                                 
      21                 :      * Sets up the definition object into the final form, something     
      22                 :      * not done by the constructor                                      
      23                 :      * @param $config HTMLPurifier_Config instance                      
      24                 :      */                                                                 
      25                 :     abstract protected function doSetup($config);                       
      26                 :                                                                         
      27                 :     /**                                                                 
      28                 :      * Setup function that aborts if already setup                      
      29                 :      * @param $config HTMLPurifier_Config instance                      
      30                 :      */                                                                 
      31                 :     public function setup($config) {                                    
      32               0 :         if ($this->setup) return;                                       
      33               0 :         $this->setup = true;                                            
      34               0 :         $this->doSetup($config);                                        
      35               0 :     }                                                                   
      36                 :                                                                         
      37                 : }                                                                       
      38                 :                                                                         

Generated by PHPUnit 3.3.1 and Xdebug 2.0.2 at Thu Sep 25 18:42:10 CEST 2008.