Location: PHPKode > projects > Savant > savant-template-system/Savant-1.5.1/Savant/tests/test_plugins/Savant_Plugin_fester.php
<?php

/**
*
* Example plugin for unit testing.
* 
* @version $Id: Savant_Plugin_fester.php,v 1.3 2003/10/02 19:03:39 pmjones Exp $
*
*/

require_once 'Savant/Plugin.php';

class Savant_Plugin_fester extends Savant_Plugin {
	
	var $message = "Fester";
	var $count = 0;
	
	function Savant_Plugin_fester(&$savant)
	{
		// initialize the parent constructor
		$this->Savant_Plugin(&$savant);
		
		// do some other constructor stuff
		$this->message .= " is printing this: ";
	}
	
	function fester(&$savant, &$text)
	{
		$output = $this->message . $text . " ({$this->count})";
		$this->count++;
		return $output;
	}
}
?>
Return current item: Savant