Implements interfaces:
Habari InfoRecords Class
Base class for managing metadata about various Habari objects
Located in /system/classes/inforecords.php (line 10)
| Class | Description |
|---|---|
| UserInfo | |
| PostInfo | Habari InfoRecords Class |
| CommentInfo | Habari InfoRecords Class |
| InfoObject | Habari InfoRecords Class |
Takes three parameters. The table of the options table, the name of the master key and the record_id for which options are managed.
posts take a slug as a record_id, comments take a comment_id and users take a user_id (user_name)
IMPORTANT: if <tt>$primary_key_value</tt> is not set in the constructor, set_key MUST be called before inforecords can be set. Or bad things (think swarms of locusts o'er the land) will happen
Commit all of the changed info options to the database.
If this function is not called, then the options will not be written.
Remove all info options. Primarily used when deleting the parent object.
I.E. when deleting a user, the delete method would call this.
Returns a set of properties used by URL::get to create URLs
Test if the master record value has been set (and thus, safe to set info records).
function set_key For use in cases where the master record key is not known at the time of object instantiation (ie: a new post)
Populate the internal hashmap with the values from the DB.
Fetch info record value.
Test for the existence of specified info value
Update the info record.
The value will not be stored in the database until calling $this->commit();
Remove an info option; immediately unsets from the storage AND removes from database. Use with caution.
Documentation generated on Thu, 30 Oct 2008 20:31:19 +0100 by phpDocumentor 1.3.2