PHP Класс PunkAve\FileUploaderBundle\Services\FileManager

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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