ePages 6.11.0 - DE_EPAGES/Shop/API/Object/Region.pm

Package DE_EPAGES::Shop::API::Object::Region

object interface for Region.

Base
DE_EPAGES::Object::API::Object::Object

Functions

addCountry
className
dbPackage
existsCountry
removeCountry

addCountry

Adds a shop country to the region.

Syntax
$Region->addCountry($CountryID);
Example
$Region->addCountry(4);
Input
$CountryID (int)
iso3166 country code

className

Returns the class name, used for DAL access.

Syntax
$ClassName = $Region->className;
Return
$ClassName (String)
class name

dbPackage

Returns the database package, used for DAL access.

Syntax
$DbPackage = $Region->dbPackage;
Return
$DbPackage (String)
database package name

existsCountry

Asks if a Country exists for the region.

Syntax
$Region->existsCountry($CountryID);
Input
$CountryID (int)
Country identifier

removeCountry

Removes a Country from the region.

Syntax
$Region->removeCountry($CountryID);
Input
$CountryID (int)
Country identifier