<?php

class CachingDataSource extends DataSourceDecorator {



	protected $cache = null;



	public function fetch() {
		if ($this->cache === NULL)
			$this->cache = parent::fetch();
		return $this->cache;
	}



} // class CachingDataSource

?>