PHP 클래스 Nette\Http\FileUpload

상속: use trait Nette\SmartObject
파일 보기 프로젝트 열기: nette/http 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $value )
__toString ( ) : string Returns the path to an uploaded file.
getContentType ( ) : string | null Returns the MIME content type of an uploaded file.
getContents ( ) : string | null Get file contents.
getError ( ) : integer Returns the error code. {@link http://php.net/manual/en/features.file-upload.errors.php}
getImageSize ( ) : array | null Returns the dimensions of an uploaded image as array.
getName ( ) : string Returns the file name.
getSanitizedName ( ) : string Returns the sanitized file name.
getSize ( ) : integer Returns the size of an uploaded file.
getTemporaryFile ( ) : string Returns the path to an uploaded file.
hasFile ( ) : boolean
isImage ( ) : boolean Is uploaded file GIF, PNG or JPEG?
isOk ( ) : boolean Is there any error?
move ( $dest ) : self Move uploaded file to new location.
toImage ( ) : Nette\Utils\Image Returns the image.

메소드 상세

__construct() 공개 메소드

public __construct ( $value )

__toString() 공개 메소드

Returns the path to an uploaded file.
public __toString ( ) : string
리턴 string

getContentType() 공개 메소드

Returns the MIME content type of an uploaded file.
public getContentType ( ) : string | null
리턴 string | null

getContents() 공개 메소드

Get file contents.
public getContents ( ) : string | null
리턴 string | null

getError() 공개 메소드

Returns the error code. {@link http://php.net/manual/en/features.file-upload.errors.php}
public getError ( ) : integer
리턴 integer

getImageSize() 공개 메소드

Returns the dimensions of an uploaded image as array.
public getImageSize ( ) : array | null
리턴 array | null

getName() 공개 메소드

Returns the file name.
public getName ( ) : string
리턴 string

getSanitizedName() 공개 메소드

Returns the sanitized file name.
public getSanitizedName ( ) : string
리턴 string

getSize() 공개 메소드

Returns the size of an uploaded file.
public getSize ( ) : integer
리턴 integer

getTemporaryFile() 공개 메소드

Returns the path to an uploaded file.
public getTemporaryFile ( ) : string
리턴 string

hasFile() 공개 메소드

public hasFile ( ) : boolean
리턴 boolean

isImage() 공개 메소드

Is uploaded file GIF, PNG or JPEG?
public isImage ( ) : boolean
리턴 boolean

isOk() 공개 메소드

Is there any error?
public isOk ( ) : boolean
리턴 boolean

move() 공개 메소드

Move uploaded file to new location.
public move ( $dest ) : self
리턴 self

toImage() 공개 메소드

Returns the image.
public toImage ( ) : Nette\Utils\Image
리턴 Nette\Utils\Image