Posted By

jonniespratley on 10/27/08


Tagged

php textmate vo amfphp


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jamarama


PHP Mapping Recordset to VO


 / Published in: PHP
 

  1. private function mapContact( $recordset )
  2. {
  3. require_once( "vo/ContactVO.php" );
  4.  
  5. $list = array();
  6.  
  7. while( $data = mysql_fetch_array( $recordset ) )
  8. {
  9. $contactVO = new ContactVO( $data );
  10.  
  11. array_push( $list, $contactVO );
  12. }
  13. return $contactVO;
  14. }

Report this snippet  

You need to login to post a comment.