View Single Post
  #1 (permalink)  
Old 06-07-2008, 09:05 AM
stm stm is offline
Junior Member
 
Join Date: Jun 2008
Posts: 4
Default Zend_Db_Table result formatting

Is it possible to write a function in my Zend_Db_Table class which will do all the formatting on a column in the result?
E.g.
PHP Code:
$users = new Users();
$result $users->fetchAll();
// $result->created = 000000229233 (unix timestamp)
// $result->createdFormatted = Thurs 12 Feb 2008 (function from above) 
Any advice would be greatly appreciated.

Last edited by stm : 06-07-2008 at 09:08 AM. Reason: formatting
Reply With Quote