<p>
Property manager handles the process of storing and retrieving agent properties in the database. It also contains functionality to get database info on property types. It was designed to work with HarmoniEditableAgent which implements functionality to modify, in the context of the program properties and other agent attributes. This manager allows the program to store those changes. </p>
<p> THIS MANAGER IS NOT IN THE OSID 2.0! However it does follow the outline of a normal OSID manager.
All implementations of OsidManager (manager) provide methods for accessing and manipulating the various objects defined in the OSID package. A manager defines an implementation of an OSID. All other OSID objects come either directly or indirectly from the manager. New instances of the OSID objects are created either directly or indirectly by the manager. Because the OSID objects are defined using interfaces, create methods must be used instead of the new operator to create instances of the OSID objects. Create methods are used both to instantiate and persist OSID objects. Using the OsidManager class to define an OSID's implementation allows the application to change OSID implementations by changing the OsidManager package name used to load an implementation. Applications developed using managers permit OSID implementation substitution without changing the application source code. As with all managers, use the OsidLoader to load an implementation of this interface. </p>
Located in /harmoni/core/oki2/agent/HarmoniPropertyManager.class.php (line 43)
Assigns the configuration of databases etc.
Assign the context of this OsidManager.
A public function to take a key/value array of properties as might be gathered from a web form and turns it into a useable object
Delete all properties associated with an object
This is here partially to preserve the option of using non-editable agents If that ceases to be an issue, this more properly belongs in HarmoniEditableAgent.class
Answer an array of all of the property keys inexistance
A public function for getting a type id (and ensuring that it exists in the database). One might consider implementing a Type manager for stuff like this that has no proper home.
A public function that retrieves properties from the database associated with the object represented by object_id_string. Each individual type has a separate object, which is placed in the array
A public function that stores all of the properties of the property object sent to it.
It deletes the old entries no matter what to avoid arduous checking to if each needed to be deleted. The properties are then rewritten to the database in the form the agent has them.
Documentation generated on Wed, 19 Sep 2007 10:24:11 -0400 by phpDocumentor 1.3.0RC3