array( 'Currency::display',array(':value') ), ); /** * Render some details for specific calls, eg: invoice */ public function details($type) { switch ($type) { case 'invoice': return sprintf('%s (%s@%s)',$this->description,$this->quantity,Currency::display($this->amount)); default: throw new Kohana_Exception('Unkown detail request :type',array(':type'=>$type)); } } } ?>