Shop_Item_Export_Csv_Controller
extends Core_Servant_Properties
in package
Online shop.
Tags
Table of Contents
Properties
- $_aCurrentRow : array<string|int, mixed>
- Array of titile line
- $_allowedProperties : array<string|int, mixed>
- Allowed object properties
- $_cacheGetListValue : mixed
- $_content : mixed
- $_fileName : mixed
- $_propertiesValues : array<string|int, mixed>
- Properties values
- $_unlimitedProperties : bool
- Object has unlimited number of properties
Methods
- __construct() : mixed
- Constructor.
- addAllowedProperties() : self
- Add additional allowed properties
- addAllowedProperty() : self
- Add additional allowed property
- getCurrentRow() : array<string|int, mixed>
- Get Current Row
- prepareCell() : string
- Prepare cell
- prepareFloat() : string
- Prepare float
- prepareString() : string
- Prepare string
- set() : self
- Run when writing data to inaccessible properties
- setCurrentRow() : self
- Set Current Row
- setUnlimitedProperties() : self
- Set unlimitedProperties
- _finish() : self
- Save rest data
- _getListValue() : mixed
- _getPropertyValue() : string
- Get value of Property_Value
- _printRow() : self
- Print array
- _saveToFile() : mixed
Properties
$_aCurrentRow
Array of titile line
protected
array<string|int, mixed>
$_aCurrentRow
= array()
$_allowedProperties
Allowed object properties
protected
array<string|int, mixed>
$_allowedProperties
= array('shopId', 'separator', 'encoding', 'exportToFile')
$_cacheGetListValue
protected
mixed
$_cacheGetListValue
= array()
$_content
protected
mixed
$_content
= ''
$_fileName
protected
mixed
$_fileName
= \NULL
$_propertiesValues
Properties values
protected
array<string|int, mixed>
$_propertiesValues
= array()
$_unlimitedProperties
Object has unlimited number of properties
protected
bool
$_unlimitedProperties
= \FALSE
Methods
__construct()
Constructor.
public
__construct(int $iShopId) : mixed
Parameters
- $iShopId : int
-
shop ID
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
selfgetCurrentRow()
Get Current Row
public
getCurrentRow() : array<string|int, mixed>
Return values
array<string|int, mixed>prepareCell()
Prepare cell
public
prepareCell(string $string) : string
Parameters
- $string : string
Return values
stringprepareFloat()
Prepare float
public
prepareFloat(mixed $string) : string
Parameters
- $string : mixed
Return values
stringprepareString()
Prepare string
public
prepareString(string $string) : string
Parameters
- $string : string
Return values
stringset()
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
selfsetCurrentRow()
Set Current Row
public
setCurrentRow(array<string|int, mixed> $array) : self
Parameters
- $array : array<string|int, mixed>
Return values
selfsetUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR
Return values
self_finish()
Save rest data
protected
_finish() : self
Return values
self_getListValue()
protected
_getListValue(mixed $list_item_id) : mixed
Parameters
- $list_item_id : mixed
_getPropertyValue()
Get value of Property_Value
protected
_getPropertyValue(Property_Model $oProperty, mixed $oProperty_Value, mixed $object) : string
Parameters
- $oProperty : Property_Model
- $oProperty_Value : mixed
- $object : mixed
Tags
Return values
string_printRow()
Print array
protected
_printRow(array<string|int, mixed> $aData) : self
Parameters
- $aData : array<string|int, mixed>
Return values
self_saveToFile()
protected
_saveToFile() : mixed