PHP Class Contao\FileUpload

Inheritance: extends Backend
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Protected Properties

Свойство Type Description
$blnHasError boolean Error indicator
$blnHasResized boolean Resized indicator
$strName string Field name

Méthodes publiques

Méthode Description
__construct ( ) Make the constructor public
generateMarkup ( ) : string Generate the markup for the default uploader
hasError ( ) : boolean Return true if there was an error
hasResized ( ) : boolean Return true if there was a resized image
setName ( string $strName ) Override the field name
uploadTo ( string $strTarget ) : array Check the uploaded files and move them to the target directory

Méthodes protégées

Méthode Description
getFilesFromGlobal ( ) : array Get the files from the global $_FILES array
getMaximumUploadSize ( ) : string Return the maximum upload file size in bytes
resizeUploadedImage ( string $strImage ) : boolean Resize an uploaded image if neccessary

Method Details

__construct() public méthode

Make the constructor public
public __construct ( )

generateMarkup() public méthode

Generate the markup for the default uploader
public generateMarkup ( ) : string
Résultat string

getFilesFromGlobal() protected méthode

Get the files from the global $_FILES array
protected getFilesFromGlobal ( ) : array
Résultat array

getMaximumUploadSize() protected méthode

Return the maximum upload file size in bytes
protected getMaximumUploadSize ( ) : string
Résultat string

hasError() public méthode

Return true if there was an error
public hasError ( ) : boolean
Résultat boolean

hasResized() public méthode

Return true if there was a resized image
public hasResized ( ) : boolean
Résultat boolean

resizeUploadedImage() protected méthode

Resize an uploaded image if neccessary
protected resizeUploadedImage ( string $strImage ) : boolean
$strImage string
Résultat boolean

setName() public méthode

Override the field name
public setName ( string $strName )
$strName string

uploadTo() public méthode

Check the uploaded files and move them to the target directory
public uploadTo ( string $strTarget ) : array
$strTarget string
Résultat array

Property Details

$blnHasError protected_oe property

Error indicator
protected bool $blnHasError
Résultat boolean

$blnHasResized protected_oe property

Resized indicator
protected bool $blnHasResized
Résultat boolean

$strName protected_oe property

Field name
protected string $strName
Résultat string