PHP 클래스 Flow\File

파일 보기 프로젝트 열기: flowjs/flow-php-server 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$request flow\RequestInterface

공개 메소드들

메소드 설명
__construct ( flow\ConfigInterface $config, flow\RequestInterface $request = null ) Constructor
_move_uploaded_file ( string $filePath, string $destinationPath ) : boolean This method is used only for testing
checkChunk ( ) : boolean Check if chunk exist
deleteChunks ( ) Delete chunks dir
getChunkPath ( integer $index ) : string Return chunk path
getIdentifier ( ) : string Get file identifier
save ( string $destination ) : boolean Merge all chunks to single file
saveChunk ( ) : boolean Save chunk
validateChunk ( ) : boolean Validate file request
validateFile ( ) : boolean Check if file upload is complete

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( flow\ConfigInterface $config, flow\RequestInterface $request = null )
$config flow\ConfigInterface
$request flow\RequestInterface

_move_uploaded_file() 공개 메소드

This method is used only for testing
public _move_uploaded_file ( string $filePath, string $destinationPath ) : boolean
$filePath string
$destinationPath string
리턴 boolean

checkChunk() 공개 메소드

Check if chunk exist
public checkChunk ( ) : boolean
리턴 boolean

deleteChunks() 공개 메소드

Delete chunks dir
public deleteChunks ( )

getChunkPath() 공개 메소드

Return chunk path
public getChunkPath ( integer $index ) : string
$index integer
리턴 string

getIdentifier() 공개 메소드

Get file identifier
public getIdentifier ( ) : string
리턴 string

save() 공개 메소드

Merge all chunks to single file
public save ( string $destination ) : boolean
$destination string final file location
리턴 boolean indicates if file was saved

saveChunk() 공개 메소드

Save chunk
public saveChunk ( ) : boolean
리턴 boolean

validateChunk() 공개 메소드

Validate file request
public validateChunk ( ) : boolean
리턴 boolean

validateFile() 공개 메소드

Check if file upload is complete
public validateFile ( ) : boolean
리턴 boolean

프로퍼티 상세

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

protected RequestInterface,flow $request
리턴 flow\RequestInterface