Login   Register  
PHP Classes
elePHPant
Icontem

File: _classes/_exporters/ConsoleExporter.class.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marius Zadara  >  Logger  >  _classes/_exporters/ConsoleExporter.class.php  >  Download  
File: _classes/_exporters/ConsoleExporter.class.php
Role: Class source
Content type: text/plain
Description: Console event exporter
Class: Logger
Filter and export data of application events
Author: By
Last change:
Date: 6 years ago
Size: 923 bytes
 

Contents

Class file image Download
<?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/>";
    }
}


?>