Zenphoto's object model framework Feb 22, 2010
This is a short tutorial about how to use Zenphoto's object
model framework which allows you to extend the standard way of
theming, as described in the theming tutorial, and
cusomize your gallery any way you like.
Before reading this you should be familiar with Zenphoto themes in general and have read the theming tutorial. You should also have quite some PHP knowledge and an understanding about how object orientation works.
This is the general class structure:
- Gallery: The gallery itself
- PersistentObject: This 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 database based object in Zenphoto, all that's needed are the values of those unique fields. PersistentObject provides caching, lazy-evaluating, persistable (...)