PersistentObject
The Database model used by every Zenphoto Object persisted to the database (Album and Image). This class change was introduced in 1.0.4 and generalized a lot of code. See changeset:260 to see just how great that is.
PersistentObject is a very general and powerful abstract database persistence class. It defines types by table names and records by a set of unique fields (keys). To instantiate a new object in a RESTful application like Zenphoto, all that's needed are the values of those unique fields. Following that, a caching, lazy-evaluating, persistable object is returned.
See (upcoming) PHPdocs or the code in classes.php for more information if interested.
