<?php
/**
* Custom event exporter.
* This class is used to export the event to the console.
*
* @author Marius Zadara <marius@zadara.org>
* @category org.zadara.marius.logger.classes.exporters
* @copyright (C) 2008 Marius Zadara <marius@zadara.org>
* @license GNU GPL
* @package org.zadara.marius.logger
* @final
* @see EventExporter
*/
final class ConsoleExporter extends EventExporter
{
/**
* Default constructor.
* It only calls the parent
*
* @access public
*/
public function __construct()
{
parent::EventExporter();
}
/**
* Custom implementation of the parent's export function.
* This function will display the event to the console.
*
* @param $event The event to export
* @see EventHandler#doExport()
* @see Event#__toString()
*/
public function doExport($event)
{
// display the event
echo $event."<br/>";
}
}
?>
|