NAME
AxKit::App::TABOO::Data::Productsubtype - Product Sub Types Data objects for TABOO
SYNOPSIS
use AxKit::App::TABOO::Data::Productsubtype;
$size = AxKit::App::TABOO::Data::Productsubtype->new();
$size->load('XXL');
DESCRIPTION
METHODS
This class implements only one method, in addition to the constructor, the rest is inherited from AxKit::App::TABOO::Data.
new()
-
The constructor. Nothing special.
load_name($prodsubid)
-
This is an ad hoc method to retrieve the full name of a productsubtypes, and it takes a
$prodsubid
key to identify the productsubtypes to retrieve. It will return a string with the name, but it will also populate the corresponding data fields of the object. You may therefore callwrite_xml
on the object afterwards and have markup for the productsubtypesname and name.
STORED DATA
The data is stored in named fields, and for certain uses, it is good to know them. If you want to subclass this class, you might want to use the same names, see the documentation of AxKit::APP::TABOO::Data for more about this. These are the names of the stored data of this class:
prodsubid
A simple word containing a unique name and identifier for the productsubtypes.
This may be extended.
uri
In the Semantic Web you'd like to identify things and their relationships with URIs. So, we try to record an URI for everything.
description
A longer description of a productsubtypes, intended as an explanation to a human what kind of things belong in that productsubtypes.
XML representation
The write_xml()
method, implemented in the parent class, can be used to create an XML representation of the data in the object. The above names will be used as element names. The xmlelement()
and xmlns()
methods can be used to set the name of the root element and the namespace respectively. Usually, it doesn't make sense to change the default namespace, which is
http://www.kjetil.kjernsmo.net/software/TABOO/NS/Productsubtypes/Output
FORMALITIES
See AxKit::App::TABOO.