The DataContainer class encapsulates a FieldSet, and a RuleSet and sets up field-setting restrictions.
The class is abstract and allows children to set up a list of fields (keys) that can be set/accessed, and rules to be associated with them.
Located in /harmoni/core/utilities/DataContainer.abstract.php (line 21)
DataContainerInterface | --DataContainer
Class | Description |
---|---|
HarmoniConfig | The HamoniConfig is a DataContainer for the Harmoni object. |
UserDataContainer | A UserDataContainer is like a DataContainer, but is targeted towards data used from http forms instead of configuration options in a script. |
The FieldSet where we will store our data.
The RuleSet that will define both rules and what keys are allowed.
The add method adds a new field with associated rule and optional error if validation fails.
Goes through all the keys and makes sure they comply to the rules specified for them.
The get method returns the value stored in the FieldSet for $field.
The init function -- sets up the private variables.
The set method sets the value for a field while checking constrictions.
Inherited From DataContainerInterface
DataContainerInterface::add()
DataContainerInterface::checkAll()
DataContainerInterface::get()
DataContainerInterface::init()
DataContainerInterface::set()
Documentation generated on Wed, 19 Sep 2007 10:22:29 -0400 by phpDocumentor 1.3.0RC3