PHP Класс CRUDlex\SimpleFilesystemFileProcessor

Наследование: implements crudlex\FileProcessorInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$basePath Holds the base path where all files will be stored into subfolders.

Открытые методы

Метод Описание
__construct ( string $basePath = '' ) Constructor.
createFile ( Request $request, Entity $entity, $entityName, $field )
deleteFile ( Entity $entity, $entityName, $field ) {@inheritdoc} For now, this implementation is defensive and doesn't delete ever.
renderFile ( Entity $entity, $entityName, $field )
updateFile ( Request $request, Entity $entity, $entityName, $field ) {@inheritdoc} For now, this implementation is defensive and doesn't delete ever.

Защищенные методы

Метод Описание
getPath ( string $entityName, Entity $entity, string $field ) : string Constructs a file system path for the given parameters for storing the file of the file field.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( string $basePath = '' )
$basePath string the base path where all files will be stored into subfolders

createFile() публичный Метод

public createFile ( Request $request, Entity $entity, $entityName, $field )
$request Symfony\Component\HttpFoundation\Request
$entity Entity

deleteFile() публичный Метод

{@inheritdoc} For now, this implementation is defensive and doesn't delete ever.
public deleteFile ( Entity $entity, $entityName, $field )
$entity Entity

getPath() защищенный Метод

Constructs a file system path for the given parameters for storing the file of the file field.
protected getPath ( string $entityName, Entity $entity, string $field ) : string
$entityName string the entity name
$entity Entity the entity
$field string the file field in the entity
Результат string the constructed path for storing the file of the file field

renderFile() публичный Метод

public renderFile ( Entity $entity, $entityName, $field )
$entity Entity

updateFile() публичный Метод

{@inheritdoc} For now, this implementation is defensive and doesn't delete ever.
public updateFile ( Request $request, Entity $entity, $entityName, $field )
$request Symfony\Component\HttpFoundation\Request
$entity Entity

Описание свойств

$basePath защищенное свойство

Holds the base path where all files will be stored into subfolders.
protected $basePath