PHP 클래스 PunkAve\FileUploaderBundle\Services\FileManager

파일 보기 프로젝트 열기: punkave/symfony2-file-uploader-bundle

보호된 프로퍼티들

프로퍼티 타입 설명
$options

공개 메소드들

메소드 설명
__construct ( $options )
getFiles ( $options = [] ) Get a list of files already present. The 'folder' option is required.
removeFiles ( $options = [] ) Remove the folder specified by 'folder' and its contents.
syncFiles ( $options = [] ) Sync existing files from one folder to another. The 'fromFolder' and 'toFolder' options are required. As with the 'folder' option elsewhere, these are appended to the file_base_path for you, missing parent folders are created, etc. If 'fromFolder' does not exist no error is reported as this is common if no files have been uploaded. If there are files and the sync reports errors an exception is thrown.

메소드 상세

__construct() 공개 메소드

public __construct ( $options )

getFiles() 공개 메소드

If you pass consistent options to this method and handleFileUpload with regard to paths, then you will get consistent results.
public getFiles ( $options = [] )

removeFiles() 공개 메소드

If you pass consistent options to this method and handleFileUpload with regard to paths, then you will get consistent results.
public removeFiles ( $options = [] )

syncFiles() 공개 메소드

If you pass consistent options to this method and handleFileUpload with regard to paths, then you will get consistent results.
public syncFiles ( $options = [] )

프로퍼티 상세

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

protected $options