Shop_Item_Export_Cml_Controller
extends Core_Servant_Properties
in package
Online shop.
Tags
Table of Contents
Properties
- $_allowedProperties : array<string|int, mixed>
- Allowed object properties
- $_propertiesValues : array<string|int, mixed>
- Properties values
- $_unlimitedProperties : bool
- Object has unlimited number of properties
- $_groupsID : array<string|int, mixed>
- Backend property
- $_retailPriceGUID : mixed
- Backend property
- $_xml : mixed
- Backend property
Methods
- __construct() : mixed
- Constructor.
- addAllowedProperties() : self
- Add additional allowed properties
- addAllowedProperty() : self
- Add additional allowed property
- applyInStockConditions() : self
- Apply in stock conditions
- exportImport() : string
- Export import.xml
- exportOffers() : string
- Export offers.xml
- set() : self
- Run when writing data to inaccessible properties
- setUnlimitedProperties() : self
- Set unlimitedProperties
- _addImportItem() : self
- Add import-item
- _addOffersItem() : self
- Add offers-item
- _setSimpleXML() : self
- Set SimpleXMLElement object
- getGroupsCML() : mixed
- Generate CML for groups
Properties
$_allowedProperties
Allowed object properties
protected
array<string|int, mixed>
$_allowedProperties
= array('group', 'shop', 'exportItemExternalProperties', 'exportItemModifications', 'exportInStock', 'producer')
$_propertiesValues
Properties values
protected
array<string|int, mixed>
$_propertiesValues
= array()
$_unlimitedProperties
Object has unlimited number of properties
protected
bool
$_unlimitedProperties
= \FALSE
$_groupsID
Backend property
private
array<string|int, mixed>
$_groupsID
= array()
$_retailPriceGUID
Backend property
private
mixed
$_retailPriceGUID
$_xml
Backend property
private
mixed
$_xml
Methods
__construct()
Constructor.
public
__construct(Shop_Model $oShop) : mixed
Parameters
- $oShop : Shop_Model
-
shop
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
selfapplyInStockConditions()
Apply in stock conditions
public
applyInStockConditions(object $oShop_Items) : self
Parameters
- $oShop_Items : object
Return values
selfexportImport()
Export import.xml
public
exportImport() : string
Return values
stringexportOffers()
Export offers.xml
public
exportOffers() : 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
selfsetUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR
Return values
self_addImportItem()
Add import-item
protected
_addImportItem(Shop_Item_Model $oShop_Item, object $parentNode) : self
Parameters
- $oShop_Item : Shop_Item_Model
- $parentNode : object
-
Parent node
Return values
self_addOffersItem()
Add offers-item
protected
_addOffersItem(Shop_Item_Model $oShop_Item, object $parentNode) : self
Parameters
- $oShop_Item : Shop_Item_Model
- $parentNode : object
-
Parent node
Return values
self_setSimpleXML()
Set SimpleXMLElement object
protected
_setSimpleXML() : self
Return values
selfgetGroupsCML()
Generate CML for groups
private
getGroupsCML(Shop_Group_Model $group, SimpleXMLElement $xml) : mixed
Parameters
- $group : Shop_Group_Model
-
start group
- $xml : SimpleXMLElement
-
target XML object