PHP 클래스 CRUDlex\SimpleFilesystemFileProcessor

상속: implements crudlex\FileProcessorInterface
파일 보기 프로젝트 열기: philiplb/crudlex

보호된 프로퍼티들

프로퍼티 타입 설명
$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