Documentation

Shop_Item_Export_Csv_Controller extends Core_Servant_Properties
in package

Online shop.

Tags
subpackage

Shop

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

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()

$_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
self

addAllowedProperty()

Add additional allowed property

public addAllowedProperty(string $property) : self
Parameters
$property : string

property name

Return values
self

getCurrentRow()

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
string

prepareFloat()

Prepare float

public prepareFloat(mixed $string) : string
Parameters
$string : mixed
Return values
string

prepareString()

Prepare string

public prepareString(string $string) : string
Parameters
$string : string
Return values
string

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
self

setCurrentRow()

Set Current Row

public setCurrentRow(array<string|int, mixed> $array) : self
Parameters
$array : array<string|int, mixed>
Return values
self

setUnlimitedProperties()

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
hostcms-event

Shop_Item_Export_Csv_Controller.onGetPropertyValueDefault

Return values
string

_printRow()

Print array

protected _printRow(array<string|int, mixed> $aData) : self
Parameters
$aData : array<string|int, mixed>
Return values
self

        
On this page

Search results