ePages 6.11.0 - DE_EPAGES/Object/API/Object/Locale.pm

Package DE_EPAGES::Object::API::Object::Locale

object interface for Locale.

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

Functions

className
dbPackage
id
importXML
primaryKey

className

Returns the class name, used for DAL access.

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

dbPackage

Returns the database package, used for DAL access.

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

id

Returns the Locale id.

Syntax
$LocaleID = $Locale->id;
Return
$LocaleID (varchar(5))
locale id, example en_GB

importXML

Maps LanguageCode and CountryCode

Syntax
$Object = DE_EPAGES::Object::API::Object::Object->importXML($Handler, $hElement, $Class, $hAttributes);
Input
$Handler (object)
xml import handler with support function addObject
$hElement (ref.hash)
XML element structure, see XML::SAX
$Class (object)
class object; the new object will be an instance of this class
$hAttributes (ref.hash)
attributes hash
Return
$Object (object)
the imported object

primaryKey

Returns the name of the primary key.

Syntax
$PrimaryKey = $Locale->primaryKey;
Return
$PrimaryKey (String)
primimary key