\app_core_inputtype_file_derivative_abstract

File derivative

Summary

Methods
Properties
Constants
__construct()
getFormPrefix()
initByRequestAndLanguage()
create()
delete()
initConfigByRequest()
prepareConfig()
configPreSave()
getFormComponent()
createColumns()
getName()
getSourceName()
appendFilters()
No public properties found
No constants found
_storeFile()
$_config
$_name
$_sourceName
$_inputType
N/A
No private methods found
No private properties found
N/A

Properties

$_config

$_config : object

Type

object

$_name

$_name : string

Type

string

$_sourceName

$_sourceName : string

Type

string

Methods

__construct()

__construct(string  $name, string  $sourceName, \stdClass  $config, \app_core_inputtype_file  $inputType) 

Constructor

Parameters

string $name
string $sourceName
\stdClass $config
\app_core_inputtype_file $inputType

getFormPrefix()

getFormPrefix(\Fuman_Form_Model_Basic  $formModel = null) : string

Gets form prefix

Parameters

\Fuman_Form_Model_Basic $formModel

Returns

string

initByRequestAndLanguage()

initByRequestAndLanguage(\Fuman_Request  $request, \Fuman_Db_Record  $record, string|null  $language) 

Init by request by language

Parameters

\Fuman_Request $request
\Fuman_Db_Record $record
string|null $language

prepareConfig()

prepareConfig(\Fuman_Form_Model_Basic  $formModel) : array

PrepareConfig

Parameters

\Fuman_Form_Model_Basic $formModel

Returns

array

configPreSave()

configPreSave(\Fuman_Db_Record  $record, \Fuman_Form_Model_Basic  $formModel) : \stdClass

Config pre save

Parameters

\Fuman_Db_Record $record
\Fuman_Form_Model_Basic $formModel

Returns

\stdClass

getFormComponent()

getFormComponent() : \stdClass|null

Gets form component

Returns

\stdClass|null

createColumns()

createColumns() : array|null

Create columns

Returns

array|null

getName()

getName() : string

Gets name

Returns

string

getSourceName()

getSourceName() : string

Gets source name

Returns

string

_storeFile()

_storeFile(\Fuman_File  $file, \Fuman_Db_Record  $record, \app_core_inputtype_file_storage_abstract  $storageFactory, string  $language) 

Stores the file and throws an exception if it fails

Parameters

\Fuman_File $file
\Fuman_Db_Record $record
\app_core_inputtype_file_storage_abstract $storageFactory
string $language

Throws

\Exception