XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
XCube_FormImageFile Class Reference
Inheritance diagram for XCube_FormImageFile:
XCube_FormFile

Public Member Functions

 fetch ()
 
 getWidth ()
 
 getHeight ()
 
 _checkFormat ()
 
- Public Member Functions inherited from XCube_FormFile
 __construct ( $name=null, $key=null)
 
 hasUploadFile ()
 
 getContentType ()
 
 getFileData ()
 
 getFileName ()
 
 getFileSize ()
 
 getExtension ()
 
 setExtension ( $ext)
 
 setContentType ( $contenttype)
 
 setFileName ( $filename)
 
 setFileSize ( $filesize)
 
 setBodyName ( $bodyname)
 
 getBodyName ()
 
 setRandomToBodyName ( $prefix, $salt='')
 
 setRandomToFilename ( $prefix, $salt='')
 
 _getRandomString ( $salt='')
 Generate random string.
 
 saveAs ( $file)
 
 saveAsRandBody ( $dir, $prefix='', $salt='')
 
 saveAsRand ( $dir, $prefix='', $salt='')
 

Additional Inherited Members

- Data Fields inherited from XCube_FormFile
 $mName
 
 $mKey
 
 $mContentType
 
 $mFileName
 
 $mFileSize = 0
 
 $_mTmpFileName
 
 $mUploadFileFlag = false
 

Detailed Description

The sub-class of XCube_FormFile to handle image upload file easily.

Definition at line 279 of file XCube_FormFile.class.php.

Member Function Documentation

◆ _checkFormat()

_checkFormat ( )

Gets a value indicating whether a format of the uploaded file is allowed. GIF, JPG, PNG @access private

Returns
bool

Definition at line 314 of file XCube_FormFile.class.php.

◆ fetch()

fetch ( )

Fetch necessary information from $_FILES by $mName

Reimplemented from XCube_FormFile.

Definition at line 280 of file XCube_FormFile.class.php.

◆ getHeight()

getHeight ( )

Gets a height of the uploaded file.

Returns
int

Definition at line 302 of file XCube_FormFile.class.php.

◆ getWidth()

getWidth ( )

Gets a width of the uploaded file.

Returns
int

Definition at line 292 of file XCube_FormFile.class.php.


The documentation for this class was generated from the following file: