Documentation

Shop_Item_Export_Cml_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

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

Methods

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

applyInStockConditions()

Apply in stock conditions

public applyInStockConditions(object $oShop_Items) : self
Parameters
$oShop_Items : object
Return values
self

exportImport()

Export import.xml

public exportImport() : string
Return values
string

exportOffers()

Export offers.xml

public exportOffers() : 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

setUnlimitedProperties()

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
self

getGroupsCML()

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


        
On this page

Search results