# GlobalData

class GlobalData extends DataModel

## Properties

protected array | $fields |  | from DataModel
protected boolean | $isEncrypted |  | from DataModel
protected ConfigGroup[] | $configGroups |  |
protected ConfigItem[] | $configItems |  |
protected CrossSellingGroup[] | $crossSellingGroups |  |
protected Currency[] | $currencies |  |
protected CustomerGroup[] | $customerGroups |  |
protected Language[] | $languages |  |
protected MeasurementUnit[] | $measurementUnits |  |
protected ProductType[] | $productTypes |  |
protected ShippingClass[] | $shippingClasses |  |
protected ShippingMethod[] | $shippingMethods |  |
protected TaxRate[] | $taxRates |  |
protected Unit[] | $units |  |
protected Warehouse[] | $warehouses |  |

## Methods

__construct(stdClass $object = null)

Constructor

from Model
multitype:
getProperties()

Get the Model Properties

from Model
Model
setOptions(stdClass $object = null, array $options = null)

Sets Properties with matching Array Values

from DataModel
stdClass
getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))

Convert the Model into stdClass Object

from DataModel
toJson()

No description

from Model
mixed:string
getFields()

Fields Getter

from DataModel
validate()

Object Validation

from DataModel
mixed:string|NULL
getField(boolean $toWawi = false, string $key)

Get a Model Member Name

from DataModel
map(boolean $toWawi = false, stdClass $obj = null)

Object Mapping

from DataModel
DataType
getModelType()

No description

from DataModel
boolean
isEncrypted()

Encrypted Status

from DataModel
setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)

No description

from DataModel
setProperty($name, $value, $type)

No description

from DataModel
validateType($value, $type)

No description

from DataModel
GlobalData
addConfigGroup(ConfigGroup $configGroup)

No description

GlobalData
setConfigGroups(array $configGroups)

No description

ConfigGroup[]
getConfigGroups()

No description

GlobalData
clearConfigGroups()

No description

GlobalData
addConfigItem(ConfigItem $configItem)

No description

GlobalData
setConfigItems(array $configItems)

No description

ConfigItem[]
getConfigItems()

No description

GlobalData
clearConfigItems()

No description

GlobalData
addCrossSellingGroup(CrossSellingGroup $crossSellingGroup)

No description

GlobalData
setCrossSellingGroups(array $crossSellingGroups)

No description

CrossSellingGroup[]
getCrossSellingGroups()

No description

GlobalData
clearCrossSellingGroups()

No description

GlobalData
addCurrency(Currency $currency)

No description

GlobalData
setCurrencies(array $currencies)

No description

Currency[]
getCurrencies()

No description

GlobalData
clearCurrencies()

No description

GlobalData
addCustomerGroup(CustomerGroup $customerGroup)

No description

GlobalData
setCustomerGroups(array $customerGroups)

No description

CustomerGroup[]
getCustomerGroups()

No description

GlobalData
clearCustomerGroups()

No description

GlobalData
addLanguage(Language $language)

No description

GlobalData
setLanguages(array $languages)

No description

Language[]
getLanguages()

No description

GlobalData
clearLanguages()

No description

GlobalData
addMeasurementUnit(MeasurementUnit $measurementUnit)

No description

GlobalData
setMeasurementUnits(array $measurementUnits)

No description

MeasurementUnit[]
getMeasurementUnits()

No description

GlobalData
clearMeasurementUnits()

No description

GlobalData
addProductType(ProductType $productType)

No description

GlobalData
setProductTypes(array $productTypes)

No description

ProductType[]
getProductTypes()

No description

GlobalData
clearProductTypes()

No description

GlobalData
addShippingClass(ShippingClass $shippingClass)

No description

GlobalData
setShippingClasses(array $shippingClasses)

No description

ShippingClass[]
getShippingClasses()

No description

GlobalData
clearShippingClasses()

No description

GlobalData
addShippingMethod(ShippingMethod $shippingMethod)

No description

GlobalData
setShippingMethods(array $shippingMethods)

No description

ShippingMethod[]
getShippingMethods()

No description

GlobalData
clearShippingMethods()

No description

GlobalData
addTaxRate(TaxRate $taxRate)

No description

GlobalData
setTaxRates(array $taxRates)

No description

TaxRate[]
getTaxRates()

No description

GlobalData
clearTaxRates()

No description

GlobalData
addUnit(Unit $unit)

No description

GlobalData
setUnits(array $units)

No description

Unit[]
getUnits()

No description

GlobalData
clearUnits()

No description

GlobalData
addWarehouse(Warehouse $warehouse)

No description

GlobalData
setWarehouses(array $warehouses)

No description

Warehouse[]
getWarehouses()

No description

GlobalData
clearWarehouses()

No description

## Details

###
in Model at line 23
`__construct(stdClass $object = null)`

Constructor

#### Parameters

stdClass | $object |

###
in Model at line 33
`multitype: getProperties()`

Get the Model Properties

#### Return Value

multitype: | string

###
in DataModel at line 172
`Model setOptions(stdClass $object = null, array $options = null)`

Sets Properties with matching Array Values

#### Parameters

stdClass | $object |
array | $options |

#### Return Value

Model |

###
in DataModel at line 70
`stdClass getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))`

Convert the Model into stdClass Object

#### Parameters

array | $publics |

#### Return Value

stdClass | $object

###
in Model at line 115
`toJson()`

###
in DataModel at line 35
`mixed:string getFields()`

Fields Getter

#### Return Value

mixed:string |

###
in DataModel at line 45
`validate()`

Object Validation

#### Exceptions

SchemaException |

###
in DataModel at line 59
`mixed:string|NULL getField(boolean $toWawi = false, string $key)`

Get a Model Member Name

#### Parameters

boolean | $toWawi |
string | $key |

#### Return Value

mixed:string|NULL |

###
in DataModel at line 81
`map(boolean $toWawi = false, stdClass $obj = null)`

Object Mapping

#### Parameters

boolean | $toWawi |
stdClass | $obj | Object to map

###
in DataModel at line 42
`DataType getModelType()`

#### Return Value

DataType |

###
in DataModel at line 59
`boolean isEncrypted()`

Encrypted Status

#### Return Value

boolean |

###
in DataModel at line 123
`setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)`

#### Parameters

string | $propertyName |
string|null | $endpoint |
int|null | $host |

###
in DataModel at line 179
`protected setProperty($name, $value, $type)`

#### Parameters

| $name |
| $value |
| $type |

###
in DataModel at line 190
`protected validateType($value, $type)`

#### Parameters

| $value |
| $type |

###
at line 132
`GlobalData addConfigGroup(ConfigGroup $configGroup)`

#### Parameters

ConfigGroup | $configGroup |

#### Return Value

GlobalData |

###
at line 142
`GlobalData setConfigGroups(array $configGroups)`

#### Parameters

array | $configGroups |

#### Return Value

GlobalData |

###
at line 151
`ConfigGroup[] getConfigGroups()`

#### Return Value

ConfigGroup[] |

###
at line 159
`GlobalData clearConfigGroups()`

#### Return Value

GlobalData |

###
at line 169
`GlobalData addConfigItem(ConfigItem $configItem)`

#### Parameters

ConfigItem | $configItem |

#### Return Value

GlobalData |

###
at line 179
`GlobalData setConfigItems(array $configItems)`

#### Parameters

array | $configItems |

#### Return Value

GlobalData |

###
at line 188
`ConfigItem[] getConfigItems()`

#### Return Value

ConfigItem[] |

###
at line 196
`GlobalData clearConfigItems()`

#### Return Value

GlobalData |

###
at line 206
`GlobalData addCrossSellingGroup(CrossSellingGroup $crossSellingGroup)`

#### Parameters

CrossSellingGroup | $crossSellingGroup |

#### Return Value

GlobalData |

###
at line 216
`GlobalData setCrossSellingGroups(array $crossSellingGroups)`

#### Parameters

array | $crossSellingGroups |

#### Return Value

GlobalData |

###
at line 225
`CrossSellingGroup[] getCrossSellingGroups()`

#### Return Value

CrossSellingGroup[] |

###
at line 233
`GlobalData clearCrossSellingGroups()`

#### Return Value

GlobalData |

###
at line 243
`GlobalData addCurrency(Currency $currency)`

#### Parameters

Currency | $currency |

#### Return Value

GlobalData |

###
at line 253
`GlobalData setCurrencies(array $currencies)`

#### Parameters

array | $currencies |

#### Return Value

GlobalData |

###
at line 262
`Currency[] getCurrencies()`

#### Return Value

Currency[] |

###
at line 270
`GlobalData clearCurrencies()`

#### Return Value

GlobalData |

###
at line 280
`GlobalData addCustomerGroup(CustomerGroup $customerGroup)`

#### Parameters

CustomerGroup | $customerGroup |

#### Return Value

GlobalData |

###
at line 290
`GlobalData setCustomerGroups(array $customerGroups)`

#### Parameters

array | $customerGroups |

#### Return Value

GlobalData |

###
at line 299
`CustomerGroup[] getCustomerGroups()`

#### Return Value

CustomerGroup[] |

###
at line 307
`GlobalData clearCustomerGroups()`

#### Return Value

GlobalData |

###
at line 317
`GlobalData addLanguage(Language $language)`

#### Parameters

Language | $language |

#### Return Value

GlobalData |

###
at line 327
`GlobalData setLanguages(array $languages)`

#### Parameters

array | $languages |

#### Return Value

GlobalData |

###
at line 336
`Language[] getLanguages()`

#### Return Value

Language[] |

###
at line 344
`GlobalData clearLanguages()`

#### Return Value

GlobalData |

###
at line 354
`GlobalData addMeasurementUnit(MeasurementUnit $measurementUnit)`

#### Parameters

MeasurementUnit | $measurementUnit |

#### Return Value

GlobalData |

###
at line 364
`GlobalData setMeasurementUnits(array $measurementUnits)`

#### Parameters

array | $measurementUnits |

#### Return Value

GlobalData |

###
at line 373
`MeasurementUnit[] getMeasurementUnits()`

#### Return Value

MeasurementUnit[] |

###
at line 381
`GlobalData clearMeasurementUnits()`

#### Return Value

GlobalData |

###
at line 391
`GlobalData addProductType(ProductType $productType)`

#### Parameters

ProductType | $productType |

#### Return Value

GlobalData |

###
at line 401
`GlobalData setProductTypes(array $productTypes)`

#### Parameters

array | $productTypes |

#### Return Value

GlobalData |

###
at line 410
`ProductType[] getProductTypes()`

#### Return Value

ProductType[] |

###
at line 418
`GlobalData clearProductTypes()`

#### Return Value

GlobalData |

###
at line 428
`GlobalData addShippingClass(ShippingClass $shippingClass)`

#### Parameters

ShippingClass | $shippingClass |

#### Return Value

GlobalData |

###
at line 438
`GlobalData setShippingClasses(array $shippingClasses)`

#### Parameters

array | $shippingClasses |

#### Return Value

GlobalData |

###
at line 447
`ShippingClass[] getShippingClasses()`

#### Return Value

ShippingClass[] |

###
at line 455
`GlobalData clearShippingClasses()`

#### Return Value

GlobalData |

###
at line 465
`GlobalData addShippingMethod(ShippingMethod $shippingMethod)`

#### Parameters

ShippingMethod | $shippingMethod |

#### Return Value

GlobalData |

###
at line 475
`GlobalData setShippingMethods(array $shippingMethods)`

#### Parameters

array | $shippingMethods |

#### Return Value

GlobalData |

###
at line 484
`ShippingMethod[] getShippingMethods()`

#### Return Value

ShippingMethod[] |

###
at line 492
`GlobalData clearShippingMethods()`

#### Return Value

GlobalData |

###
at line 502
`GlobalData addTaxRate(TaxRate $taxRate)`

#### Parameters

TaxRate | $taxRate |

#### Return Value

GlobalData |

###
at line 512
`GlobalData setTaxRates(array $taxRates)`

#### Parameters

array | $taxRates |

#### Return Value

GlobalData |

###
at line 521
`TaxRate[] getTaxRates()`

#### Return Value

TaxRate[] |

###
at line 529
`GlobalData clearTaxRates()`

#### Return Value

GlobalData |

###
at line 539
`GlobalData addUnit(Unit $unit)`

#### Parameters

Unit | $unit |

#### Return Value

GlobalData |

###
at line 549
`GlobalData setUnits(array $units)`

#### Parameters

array | $units |

#### Return Value

GlobalData |

###
at line 558
`Unit[] getUnits()`

#### Return Value

Unit[] |

###
at line 566
`GlobalData clearUnits()`

#### Return Value

GlobalData |

###
at line 576
`GlobalData addWarehouse(Warehouse $warehouse)`

#### Parameters

Warehouse | $warehouse |

#### Return Value

GlobalData |

###
at line 586
`GlobalData setWarehouses(array $warehouses)`

#### Parameters

array | $warehouses |

#### Return Value

GlobalData |

###
at line 595
`Warehouse[] getWarehouses()`

#### Return Value

Warehouse[] |

###
at line 603
`GlobalData clearWarehouses()`

#### Return Value

GlobalData |