File upload helper
Definition at line 10 of file helper/file.class.php.
◆ afterInit()
Call just after the configuration initialisation
Definition at line 40 of file object.class.php.
◆ beforeInit()
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
◆ 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.
◆ 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.
◆ valid()
valid |
( |
array |
$file, |
|
|
array |
$prm = array() |
|
) |
| |
Check if the image is valid (to be used by form_fileUploaded)
- Parameters
-
string | $file | File pathname |
array | $prm | |
- Returns
- bool|string True if valid or string representing the error
Definition at line 19 of file helper/file.class.php.
◆ $cfg
The documentation for this class was generated from the following file: