Newer
Older
umgamf / core / shared / adapters / zendrowAdapter.php
@reddawg reddawg on 11 Jun 2008 801 bytes Sync
<?php
/**
 * This Adapter translates the specific Database type links to the data and pulls the data into very
 * specific local variables to later be retrieved by the gateway and returned to the client.
 *
 * pdoAdapter is a contribution of Andrea Giammarchi
 *
 * Now using fast serialization
 * 
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @copyright (c) 2003 amfphp.org
 * @package flashservices
 * @subpackage adapters
 * @version $Id$
 */

require_once(AMFPHP_BASE . "shared/adapters/RecordSetAdapter.php");

class zendrowAdapter extends RecordSetAdapter 
{
	function zendrowAdapter($d) {
		parent::RecordSetAdapter($d);
		
		$val = $d->toArray();
		$this->columns = array_keys($val);
		$this->rows[] = array_values($val);
	}
}
?>