\app_core_inputtype_file_source_http

Represents a standard http upload

Summary

Methods
Properties
Constants
__construct()
hasFiles()
getFiles()
getFormComponent()
No public properties found
No constants found
_getFormName()
$_inputType
$_name
N/A
No private methods found
No private properties found
N/A

Properties

$_name

$_name : 

Type

Methods

__construct()

__construct(\app_core_inputtype_file  $inputType) 

Constructor

Parameters

\app_core_inputtype_file $inputType

hasFiles()

hasFiles(\Fuman_Request  $request, \Fuman_Db_Record  $record, string  $language) : boolean

User selected any files.

Parameters

\Fuman_Request $request
\Fuman_Db_Record $record
string $language

Returns

boolean

getFiles()

getFiles(\Fuman_Request  $request, \Fuman_Db_Record  $record, string  $language) : array|null

Returns the uploaded files from $_FILES.

Parameters

\Fuman_Request $request
\Fuman_Db_Record $record
string $language

Throws

\Fuman_Exception

Returns

array|null

getFormComponent()

getFormComponent(\Fuman_Db_Record  $record, string  $language) : \Fuman_InputType_Renderer

Returns form component

Parameters

\Fuman_Db_Record $record
string $language

Returns

\Fuman_InputType_Renderer

_getFormName()

_getFormName(\Fuman_Db_Record  $record, string  $language) : string

Gets form name

Parameters

\Fuman_Db_Record $record
string $language

Throws

\Exception

Returns

string