Form file element 
Definition at line 10 of file form/file.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 |  
          |  | ) |  |  |  | inherited | 
 
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()
◆ 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()
◆ plupload()
      
        
          | plupload | ( | array | $opts = array(), | 
        
          |  |  |  | $hideSubmit = true | 
        
          |  | ) |  |  | 
      
 
Make the field plupload for asynchronous upload.
- Parameters
- 
  
    | array | $opts | Plupload options |  | boolean | $hideSubmit | Indicate if the submit button should be hide by JavaScript |  
 
Definition at line 109 of file form/file.class.php.
 
 
◆ 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 | 
        
          |  | ) |  |  | 
      
 
 
◆ 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()
◆ toXul()
◆ uploadify()
      
        
          | uploadify | ( | array | $opt = array(), | 
        
          |  |  |  | $hideSubmit = true | 
        
          |  | ) |  |  | 
      
 
Make the field uploadify. You will probably have to set the script options at least.
- Parameters
- 
  
    | array | $opt | Uploadify options |  | boolean | $hideSubmit | Indicate if the submit button should be hide by JavaScript |  
 
Definition at line 83 of file form/file.class.php.
 
 
◆ $cfg
◆ $customErrors
◆ $deleted
◆ $keep
◆ $valid
The documentation for this class was generated from the following file: