PHP 클래스 Jyxo\Input\Upload

저자: Jakub Tománek
파일 보기 프로젝트 열기: jyxo/php 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $index ) Constructor.
__toString ( ) : string Conversion to string because of other validators.
confirmUpload ( ) : self Confirms that the file was successfully uploaded.
error ( ) : integer Returns upload error type.
extension ( ) : string | null Returns file extension.
filename ( ) : string | null Returns file name.
move ( string $destination ) : boolean Moves the uploaded file.
tmpName ( ) : string Returns file's temporary name.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $index )
$index string File index

__toString() 공개 메소드

Conversion to string because of other validators.
public __toString ( ) : string
리턴 string

confirmUpload() 공개 메소드

Confirms that the file was successfully uploaded.
public confirmUpload ( ) : self
리턴 self

error() 공개 메소드

Returns upload error type.
public error ( ) : integer
리턴 integer

extension() 공개 메소드

Returns file extension.
public extension ( ) : string | null
리턴 string | null

filename() 공개 메소드

Returns file name.
public filename ( ) : string | null
리턴 string | null

move() 공개 메소드

Moves the uploaded file.
public move ( string $destination ) : boolean
$destination string File destination
리턴 boolean

tmpName() 공개 메소드

Returns file's temporary name.
public tmpName ( ) : string
리턴 string