Public interface for the phpersistence layer.
Located in /Persistence.class.php (line 29)
Deletes an object.
The second optional boolean parameter may be set to false if the instance should not be deleted from memory. By default, it is set to null.
Executes the given SQL query. Simple implementation (TODO :has to be worked over)
Returns an array of objects as found by example.
Returns an array of objects of type $className, as found with the given $sqlQuery.
Returns all objects of a given type. Simple implementation ignoring inheritence.
Gets an object as found with the given primary Key.
If no object is found, null is returned. If multiple objects are found (what should not occur if the param is a real primary key), only the first object is returned.
Loads an object, as found with the given primary Key, into the given instance.
If no object is found, null is returned. If multiple objects are found (what should not occur if the param is a real primary key), only the first object is returned.
Saves an object
Saves or Updates an object according to it's state :
- if it has a valid primary key, it has already been saved once, so update - if not, object is saved
If possible, it is better to use the save() or update() explicitely, and not to rely on this method.
Updates an object
Documentation generated on Wed, 5 May 2004 20:19:59 +0200 by phpDocumentor 1.3.0RC3