PHP 클래스 Gc\Media\File

상속: extends Gc\Core\Object
파일 보기 프로젝트 열기: gotcms/gotcms 1 사용 예제들

공개 메소드들

메소드 설명
copyDirectory ( string $source, string $destination ) : boolean Copy directory from source to destination
getDirectory ( ) : string Return directory
getFileTransfer ( ) : Zend\File\Transfer\Adapter Return File Transfer adapter
getPath ( ) : string Return path
isWritable ( string $directory, string[] $excludeDirectory = [] ) : boolean Test is_writable recursively
load ( Model $property, Model $document, string $filename = null ) : void Initiliaze File Object
remove ( string $filename ) : boolean Remove image
removeDirectory ( string $directory ) : boolean Use rmdir recursively
upload ( ) : boolean Upload file to the server

메소드 상세

copyDirectory() 공개 정적인 메소드

Copy directory from source to destination
public static copyDirectory ( string $source, string $destination ) : boolean
$source string Source
$destination string Destination
리턴 boolean

getDirectory() 공개 메소드

Return directory
public getDirectory ( ) : string
리턴 string

getFileTransfer() 공개 메소드

Return File Transfer adapter
public getFileTransfer ( ) : Zend\File\Transfer\Adapter
리턴 Zend\File\Transfer\Adapter

getPath() 공개 메소드

Return path
public getPath ( ) : string
리턴 string

isWritable() 공개 정적인 메소드

Test is_writable recursively
public static isWritable ( string $directory, string[] $excludeDirectory = [] ) : boolean
$directory string Directory start
$excludeDirectory string[] Exclude directory
리턴 boolean

load() 공개 메소드

Initiliaze File Object
public load ( Model $property, Model $document, string $filename = null ) : void
$property Gc\Property\Model Property
$document Gc\Document\Model Document
$filename string Filename
리턴 void

remove() 공개 메소드

Remove image
public remove ( string $filename ) : boolean
$filename string Filename
리턴 boolean

removeDirectory() 공개 정적인 메소드

Use rmdir recursively
public static removeDirectory ( string $directory ) : boolean
$directory string Directory start
리턴 boolean

upload() 공개 메소드

Upload file to the server
public upload ( ) : boolean
리턴 boolean