Pherret

Pherret Model

The Pherret Model class is an implementation of the Active Record design pattern. It allows for the database to be worked with in an object oriented way, mapping one row of a table to one Model object. It uses some of the new "magic" features of PHP5 to allow this interaction happen transparently. Model uses lazy initialization to only load related Models when needed, thus keeping database queries to a minimum.