Definition at line 25 of file XCube_FormFile.class.php.
◆ __construct()
__construct |
( |
| $name = null, |
|
|
| $key = null ) |
◆ _getRandomString()
_getRandomString |
( |
| $salt = '' | ) |
|
Generate random string.
- Parameters
-
string | $salt | Salt for generating token. |
- Returns
- string
Definition at line 203 of file XCube_FormFile.class.php.
◆ fetch()
◆ getBodyName()
◆ getContentType()
◆ getExtension()
◆ getFileData()
◆ getFileName()
◆ getFileSize()
◆ hasUploadFile()
◆ saveAs()
Name this, and store it. If the name is specified as complete file name, store it as the same name. If the name is specified as directory name, store it as the own name to the directory specified.
- Parameters
-
Directory | $file | path or file path. |
- Returns
- bool
Definition at line 222 of file XCube_FormFile.class.php.
◆ saveAsRand()
saveAsRand |
( |
| $dir, |
|
|
| $prefix = '', |
|
|
| $salt = '' ) |
Set random string to file name, and store it. The extension is never changed.
- Parameters
-
Directory | $dir | for store. |
string | $prefix | Prefix for random string. |
string | $salt | Salt for generating token. |
- Returns
- bool
- See also
- saveAs()
-
setRandomToFileName()
Definition at line 269 of file XCube_FormFile.class.php.
◆ saveAsRandBody()
saveAsRandBody |
( |
| $dir, |
|
|
| $prefix = '', |
|
|
| $salt = '' ) |
Set random string to file body name, and store it. The extension is never changed.
- Parameters
-
Directory | $dir | for store. |
string | $prefix | Prefix for random string. |
string | $salt | Salt for generating token. |
- Returns
- bool
- See also
- saveAs()
-
setRandomToBodyName()
Definition at line 252 of file XCube_FormFile.class.php.
◆ setBodyName()
◆ setContentType()
setContentType |
( |
| $contenttype | ) |
|
◆ setExtension()
◆ setFileName()
◆ setFileSize()
◆ setRandomToBodyName()
setRandomToBodyName |
( |
| $prefix, |
|
|
| $salt = '' ) |
Set random string to file body name. The extension is never changed.
- Parameters
-
string | $prefix | Prefix for random string. |
string | $salt | Salt for generating token. |
Definition at line 181 of file XCube_FormFile.class.php.
◆ setRandomToFilename()
setRandomToFilename |
( |
| $prefix, |
|
|
| $salt = '' ) |
Set random string to file body name. The extension is changed.
- Parameters
-
string | $prefix | Prefix for random string. |
string | $salt | Salt for generating token. |
Definition at line 192 of file XCube_FormFile.class.php.
◆ $_mTmpFileName
◆ $mContentType
◆ $mFileName
◆ $mFileSize
◆ $mKey
◆ $mName
◆ $mUploadFileFlag
The documentation for this class was generated from the following file: