PHPIDS
Current file: /home/mario/workspace/php-ids.org/trunk/lib/IDS/vendors/htmlpurifier/HTMLPurifier/ConfigDef/Directive.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
100.00 %100.00%
100.00% 1 / 1
 
HTMLPurifier_ConfigDef_Directive
100.00 %100.00%
100.00% 1 / 1
0.00 %0.00%
0.00% 0 / 1
100.00 %100.00%
100.00% 1 / 1
 public function __construct($type = NULL, $allow_null = NULL, $allowed = NULL, $aliases = NULL)
0.00 %0.00%
0.00% 0 / 1
100.00 %100.00%
100.00% 0 / 0


       1                 : <?php                                                                          
       2                 :                                                                                
       3                 : /**                                                                            
       4                 :  * Structure object containing definition of a directive.                      
       5                 :  * @note This structure does not contain default values                        
       6                 :  */                                                                            
       7               1 : class HTMLPurifier_ConfigDef_Directive extends HTMLPurifier_ConfigDef          
       8                 : {                                                                              
       9                 :                                                                                
      10                 :     public $class = 'directive';                                               
      11                 :                                                                                
      12                 :     public function __construct(                                               
      13                 :         $type = null,                                                          
      14                 :         $allow_null = null,                                                    
      15                 :         $allowed = null,                                                       
      16                 :         $aliases = null                                                        
      17                 :     ) {                                                                        
      18                 :         if (       $type !== null)        $this->type = $type;                 
      19                 :         if ( $allow_null !== null)  $this->allow_null = $allow_null;           
      20                 :         if (    $allowed !== null)     $this->allowed = $allowed;              
      21                 :         if (    $aliases !== null)     $this->aliases = $aliases;              
      22                 :     }                                                                          
      23                 :                                                                                
      24                 :     /**                                                                        
      25                 :      * Allowed type of the directive. Values are:                              
      26                 :      *      - string                                                           
      27                 :      *      - istring (case insensitive string)                                
      28                 :      *      - int                                                              
      29                 :      *      - float                                                            
      30                 :      *      - bool                                                             
      31                 :      *      - lookup (array of value => true)                                  
      32                 :      *      - list (regular numbered index array)                              
      33                 :      *      - hash (array of key => value)                                     
      34                 :      *      - mixed (anything goes)                                            
      35                 :      */                                                                        
      36                 :     public $type = 'mixed';                                                    
      37                 :                                                                                
      38                 :     /**                                                                        
      39                 :      * Is null allowed? Has no effect for mixed type.                          
      40                 :      * @bool                                                                   
      41                 :      */                                                                        
      42                 :     public $allow_null = false;                                                
      43                 :                                                                                
      44                 :     /**                                                                        
      45                 :      * Lookup table of allowed values of the element, bool true if all allowed.
      46                 :      */                                                                        
      47                 :     public $allowed = true;                                                    
      48                 :                                                                                
      49                 :     /**                                                                        
      50                 :      * Hash of value aliases, i.e. values that are equivalent.                 
      51                 :      */                                                                        
      52                 :     public $aliases = array();                                                 
      53                 :                                                                                
      54                 : }                                                                              
      55                 :                                                                                

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