q = $q; $this->i = $i; $this->t = $t; } public function __get($key) { switch($key) { case 'i': case 'q': return $this->{$key}; case 't': return Currency::display($this->{$key}); default: throw new Kohana_Exception('Unknown Key :key',array(':key',$key)); } } } ?>