\app_core_inputtype_file_storage_abstract

Represents an abstract storage for uploaded files.

Summary

Methods
Properties
Constants
__construct()
createColumns()
getFiles()
delete()
storeFile()
deleteFile()
No public properties found
No constants found
No protected methods found
$_inputType
N/A
No private methods found
No private properties found
N/A

Properties

Methods

__construct()

__construct(\app_core_inputtype_file  $inputType) 

Constructor

Parameters

\app_core_inputtype_file $inputType

createColumns()

createColumns() : array<mixed,\Fuman_Column>

Used to create additional columns for the target.

Returns

array<mixed,\Fuman_Column>

getFiles()

getFiles(\Fuman_Db_Record  $record, string  $language, boolean  $getDerivatives = true) : array<mixed,\Fuman_File>

Get files by Fuman_Db_Record

Parameters

\Fuman_Db_Record $record
string $language
boolean $getDerivatives

Returns

array<mixed,\Fuman_File>

delete()

delete(\Fuman_Db_Record  $record, string  $language, boolean  $deleteParents = false) : void

Deletes a file by record.

Parameters

\Fuman_Db_Record $record
string $language
boolean $deleteParents

storeFile()

storeFile(\Fuman_File  $file, \Fuman_Db_Record  $record, string  $language, null  $derivativeName = null) : boolean

Stores a file by record.

Attention, do not delete this file!

Parameters

\Fuman_File $file
\Fuman_Db_Record $record
string $language
null $derivativeName

Returns

boolean

deleteFile()

deleteFile(\Fuman_File  $file, \Fuman_Db_Record  $record,   $language, null  $derivativeName = null) : mixed

Parameters

\Fuman_File $file
\Fuman_Db_Record $record
$language
null $derivativeName

Returns

mixed