|
|
|
|
Implements interface: HammerKit_ObjectInterface
A HammerKit_GenericObject is basically an associative array implementing the HammerKit_ObjectInterface. The HammerKit_GenericObject class has no predefined attributes and attributes can be freely added and removed from the object through the methods setAttribute and setAttributes.
A HammerKit_GenericObject only exists during run-time and thus has no id-type identifier for database persistence. In stead the identifier of a HammerKit_GenericObject is the associative array of predefined attributes to be "converted" into a object implementing the HammerKit_ObjectInterface.
A HammerKit_GenericObject does not have any predefined attributes.
constructor __construct([array attributes])
Description: Creates a new HammerKit_GenericObject object.
Arguments: attributes is an associative array with attribute names as keys and attribute values as value.
mixed getAttribute(string attribute [, boolean formatted [, array format_options]])
Description: See the description of the HammerKit_ObjectInterface interface.
string[string[]] getAttributeList([string property])
Description: See the description of the HammerKit_ObjectInterface interface.
string getChooser(string name [, string value [, array specials [, array settings [, array options]]]])
Description: See the description of the HammerKit_ObjectInterface interface.
boolean remove(void)
Description: See the description of the HammerKit_ObjectInterface interface.
Note: In the case of a HammerKit_GenericObject, this method only removes all the attributes specified in the object.
boolean setAttribute(string attribute_name, mixed attribute_value)
Description: See the description of the HammerKit_ObjectInterface interface.
boolean setAttributes(array attributes)
Description: See the description of the HammerKit_ObjectInterface interface.
mixed[] toArray(void)
Description: Converts the HammerKit_GenericObject to an associative array.
Returns: The object's attributes and their values as an array.
|
� HammerKit Oy 2008 |
UPDATED: 09.12.2008 14:59 |
|