PHP 클래스 Contao\FileUpload

상속: extends Backend
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$blnHasError boolean Error indicator
$blnHasResized boolean Resized indicator
$strName string Field name

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

Make the constructor public
public __construct ( )

generateMarkup() 공개 메소드

Generate the markup for the default uploader
public generateMarkup ( ) : string
리턴 string

getFilesFromGlobal() 보호된 메소드

Get the files from the global $_FILES array
protected getFilesFromGlobal ( ) : array
리턴 array

getMaximumUploadSize() 보호된 메소드

Return the maximum upload file size in bytes
protected getMaximumUploadSize ( ) : string
리턴 string

hasError() 공개 메소드

Return true if there was an error
public hasError ( ) : boolean
리턴 boolean

hasResized() 공개 메소드

Return true if there was a resized image
public hasResized ( ) : boolean
리턴 boolean

resizeUploadedImage() 보호된 메소드

Resize an uploaded image if neccessary
protected resizeUploadedImage ( string $strImage ) : boolean
$strImage string
리턴 boolean

setName() 공개 메소드

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

uploadTo() 공개 메소드

Check the uploaded files and move them to the target directory
public uploadTo ( string $strTarget ) : array
$strTarget string
리턴 array

프로퍼티 상세

$blnHasError 보호되어 있는 프로퍼티

Error indicator
protected bool $blnHasError
리턴 boolean

$blnHasResized 보호되어 있는 프로퍼티

Resized indicator
protected bool $blnHasResized
리턴 boolean

$strName 보호되어 있는 프로퍼티

Field name
protected string $strName
리턴 string