<?php
/**
 * Standard Output Handler
 *
 * @author Gaetan Lauff <glauff@plansoft.de>
 * @version	XP $Id: class.ek_outputhandler.php 4 2006-01-31 18:15:48Z glauff $
 * @package output
 */
class OutputHandler
{
	var $output;
	/**
	 * Constructor
	 *
	 * Creates a new Output Handler according to the stream.
	 * Default Stream is stdout
	 *
	 * @return 	void
	 *
	 * @access 	public
	 */
	function OutputHandler()
	{
		$this->output = null;
	}
	
	/**
	 * Output the transformed Input (Template) to the defined Stream
	 *
	 * If you want to write your own output Handler you have to do the following:
	 * First write your own output handler class that extends the ek_outputhandler.
	 * Then overwrite the output method
	 * 
	 * @param	object	EK_Template
	 * @return 	void
	 *
	 * @access 	private
	 */
	function output()
	{	
		print $this->output;
	}
	
	/**
	 * Sets the output
	 *
	 * @param string $output
	 */
	function setOutput( $output )
	{
		$this->output = $output;
	}
}
?>