Form_Fill_Export_Controller
extends Core_Servant_Properties
in package
Form_Fill_Export_Controller
Tags
Table of Contents
Properties
- $_aForm_Field_Dir_Tree : array<string|int, mixed>
- $_aForm_Fields : array<string|int, mixed>
- $_aForm_Fields_List : array<string|int, mixed>
- $_allowedProperties : array<string|int, mixed>
- Allowed object properties
- $_propertiesValues : array<string|int, mixed>
- Properties values
- $_unlimitedProperties : bool
- Object has unlimited number of properties
- $_aCurrentData : array<string|int, mixed>
- CSV data
- $_Form : Form_Model
- Form object
Methods
- __construct() : mixed
- Constructor.
- addAllowedProperties() : self
- Add additional allowed properties
- addAllowedProperty() : self
- Add additional allowed property
- execute() : mixed
- Executes the business logic.
- set() : self
- Run when writing data to inaccessible properties
- setUnlimitedProperties() : self
- Set unlimitedProperties
- toArray() : array<string|int, mixed>
- Convert Object to Array
- _createFormFieldList() : self
- Create list of fields depends on the tree and sorting
- _prepareString() : string
- Prepare string
- _printRow() : self
- Print array
Properties
$_aForm_Field_Dir_Tree
protected
array<string|int, mixed>
$_aForm_Field_Dir_Tree
= array()
$_aForm_Fields
protected
array<string|int, mixed>
$_aForm_Fields
= array()
$_aForm_Fields_List
protected
array<string|int, mixed>
$_aForm_Fields_List
= array()
$_allowedProperties
Allowed object properties
protected
array<string|int, mixed>
$_allowedProperties
= array('from', 'to')
$_propertiesValues
Properties values
protected
array<string|int, mixed>
$_propertiesValues
= array()
$_unlimitedProperties
Object has unlimited number of properties
protected
bool
$_unlimitedProperties
= \FALSE
$_aCurrentData
CSV data
private
array<string|int, mixed>
$_aCurrentData
= array()
$_Form
Form object
private
Form_Model
$_Form
= \NULL
Methods
__construct()
Constructor.
public
__construct(object $oForm) : mixed
Parameters
- $oForm : object
-
Form_Model object
addAllowedProperties()
Add additional allowed properties
public
addAllowedProperties(array<string|int, mixed> $array) : self
Parameters
- $array : array<string|int, mixed>
-
array of properties' names
Return values
selfaddAllowedProperty()
Add additional allowed property
public
addAllowedProperty(string $property) : self
Parameters
- $property : string
-
property name
Return values
selfexecute()
Executes the business logic.
public
execute() : mixed
set()
Run when writing data to inaccessible properties
public
set(string $property, string $value) : self
Parameters
- $property : string
-
property name
- $value : string
-
property value
Return values
selfsetUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR
Return values
selftoArray()
Convert Object to Array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>_createFormFieldList()
Create list of fields depends on the tree and sorting
protected
_createFormFieldList(mixed $dir_id) : self
Parameters
- $dir_id : mixed
Return values
self_prepareString()
Prepare string
protected
_prepareString(string $string) : string
Parameters
- $string : string
Return values
string_printRow()
Print array
protected
_printRow(array<string|int, mixed> $aData) : self
Parameters
- $aData : array<string|int, mixed>