Used by form_file to save the uploaded file
Definition at line 10 of file fileUploaded.class.php.
◆ __toString()
◆ afterInit()
◆ beforeInit()
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
◆ callHelper()
callHelper |
( |
|
$fct, |
|
|
|
$filename = null , |
|
|
|
$defRet = true |
|
) |
| |
|
protected |
Call an helper function
- Parameters
-
string | $fct | Function name |
string | $filename | Filename |
mixed | $defRet | Default return if not callabled |
- Returns
- mixed The helper function return or $defRet
Definition at line 126 of file fileUploaded.class.php.
◆ delete()
◆ 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.
◆ getCurrent()
◆ getHelper()
◆ getHelperPrm()
Get helper parameters to use with callHelper
- Parameters
-
string | $name | Parameter name |
- Returns
- array The value parameter
- See also
- callHelper
Definition at line 113 of file fileUploaded.class.php.
◆ getInfo()
◆ getView()
◆ isSaved()
isSaved |
( |
|
$fromRequest = false | ) |
|
◆ isValid()
◆ safeFileName()
Create a filename to not erease existing files
- Parameters
-
- Returns
- string Filename useable
Definition at line 259 of file fileUploaded.class.php.
◆ save()
◆ 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.
◆ setCurrent()
setCurrent |
( |
|
$file, |
|
|
|
$refill = false |
|
) |
| |
◆ $cfg
◆ $dir
◆ $file
◆ $helper
◆ $saved
◆ $subdir
The documentation for this class was generated from the following file: