ePages 6.10 - DE_EPAGES/Product/API/Object/BundleProductMap.pm

Package DE_EPAGES::Product::API::Object::BundleProductMap

object interface for BundleProductMap.

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

Functions

className
dbPackage
deleteXML
id
importXML
primaryKey

className

Returns the class name, used for DAL access.

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

dbPackage

Returns the database package, used for DAL access.

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

deleteXML

Called by the SAX driver when a start tag for the current object class is encountered. The function identifies the object by the attributes in $hAttributes and deletes the object if it still exists and and the attribute 'delete="1"' is specified.

Syntax
$Object = DE_EPAGES::Object::API::Object::Object->deleteXML($Handler, $hElement, $hAttributes, $Class);
Input
$ObjectPackage (string)
package name of the objects's class
$Handler (object)
xml delete handler
$hElement (ref.hash)
information about the start tag, see SAX function start_element
$hAttributes (ref.hash)
attributes of the start tag
$Class (object)
class object; the new object will be an instance of this class
Return
$Object (object)
the found object if it still exists

id

Returns the BundleProductMap id.

Syntax
$BundleProductMapID = $BundleProductMap->id;
Return
$BundleProductMapID (int)
bundle product map identifier

importXML

Imports an object from an XML file. This function is called at the XML start tag.

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 = $BundleProductMap->primaryKey;
Return
$PrimaryKey (String)
primimary key