Posts Tagged ‘model’

SpiffyDb and SpiffyCalendar updated

Friday, October 2nd, 2009

I’ve released version 1.1.0 of both SpiffyDb and SpiffyCalendar. See their respective pages for detailed information.

SpiffyDb v1.0.0 Released

Thursday, September 24th, 2009

I’ve just released SpiffyDb for the Zend Framework. SpiffyDb extends the basic functionality of Zend_Db_Table and Zend_Db_Table_Select and includes a Model/Mapper as shown in the Zend Framework Quick Start. These new classes include a hoist of new features and automate much of the model/mapper functionality that is common to them. Read more about SpiffyDb here.

SpiffyModel/Mapper for Zend Framework

Monday, September 14th, 2009

The Delima

Creating a model/mapper for every (or near every) table in your database can be a time consuming process. I got rather bored copying/pasting virtually identical models/mappers so I wrote a couple classes that handle the majority of the work for me and add some nifty features.

The Solution

Spiffy_Db_Model, Spiffy_Db_Model_Mapper, and Spiffy_Db_Table provide the basic functionality of your most common model/mapper. Methods such as findByField, find, fetchAll, fetchAllByField, getOptions, setOptions, lastInsertId, select and automatic getters/setters make it simple to start using. All that’s required is you extend the appropriate Spiffy_Db_XXXX_Abstract class and you’re off. The one expectation is that you use a lowercase and underscore spaced naming convention for your tables. i.e., user_id and not UserId.

Getting It

Coming soon… comment if you’re interested.