A little example of how to implement the active record pattern in php