abstract class for form element 
Definition at line 10 of file form/abstract.class.php.
 
◆ __get()
Get a variable directly from the configuration, with a convenient way $config->name
- Parameters
 - 
  
    | string | $name | Value requested  | 
  
   
- Returns
 - mixed The value requested, null if it doesn't exists 
 
Definition at line 263 of file form/abstract.class.php.
 
 
◆ __set()
Set a variable directly from the configuration, with a convenient way $config->name = $value
- Parameters
 - 
  
    | string | $name | Value requested  | 
    | mixed | $value | Value to set  | 
  
   
Definition at line 273 of file form/abstract.class.php.
 
 
◆ __toString()
Transform the element to a string to be shown, with the courant output
- Returns
 - string 
 
Definition at line 253 of file form/abstract.class.php.
 
 
◆ addCustomError()
◆ addRule()
      
        
          | addRule  | 
          ( | 
            | 
          $type,  | 
        
        
           | 
           | 
            | 
          $prm = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Add a rule from the valdiation
- Parameters
 - 
  
    | string | $type | Validation type  | 
    | array | $prm | Parameter for this rule  | 
  
   
Definition at line 195 of file form/abstract.class.php.
 
 
◆ afterInit()
◆ beforeInit()
Call just before the configuration initialisation 
Definition at line 35 of file object.class.php.
 
 
◆ delRule()
◆ getAttr()
Get an attribute
- Parameters
 - 
  
    | string | $name | Attribute name  | 
  
   
- Returns
 - mixed|null The attribute or null if not set 
 
Definition at line 48 of file object.class.php.
 
 
◆ getCfg()
Get the configuration object
- Returns
 - config 
 
Definition at line 67 of file object.class.php.
 
 
◆ getDescription()
◆ getErrors()
◆ getName()
◆ getRawValue()
◆ getType()
◆ getValid()
◆ getValidRule()
Get a valide rule config
- Parameters
 - 
  
  
 
- Returns
 - null|mixed Null if not set or configuration if existing 
 
Definition at line 151 of file form/abstract.class.php.
 
 
◆ getValue()
◆ initValid()
◆ isHidden()
◆ isValid()
Check if the element is valid by using the valid object
- Returns
 - bool True if valid 
 
Definition at line 141 of file form/abstract.class.php.
 
 
◆ makeId()
◆ renew()
◆ setAttr()
  
  
      
        
          | setAttr  | 
          ( | 
            | 
          $name,  | 
         
        
           | 
           | 
            | 
          $value  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
Set an attribute
- Parameters
 - 
  
    | string | $name | Attribute name  | 
    | mixed | $value | Attribute value  | 
  
   
Definition at line 58 of file object.class.php.
 
 
◆ setDisabled()
◆ setValue()
      
        
          | setValue  | 
          ( | 
            | 
          $value,  | 
        
        
           | 
           | 
            | 
          $refill = false  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Set the form element value
- Parameters
 - 
  
    | mixed | $value | The value  | 
    | boolean | $refill | Indicate if the value is a refill one  | 
  
   
Definition at line 94 of file form/abstract.class.php.
 
 
◆ to()
Transform the element to a string to be shown
- Parameters
 - 
  
    | string | $type | The output type  | 
  
   
- Returns
 - string 
 
Definition at line 232 of file form/abstract.class.php.
 
 
◆ toHtml()
Transform the element in a HTML string 
 
 
◆ toXul()
◆ $cfg
◆ $customErrors
◆ $valid
The documentation for this class was generated from the following file: