Location: PHPKode > scripts > PAX > pax/models/example/implementations/say.class.php
<?php

final class Say extends Node
{
	public function __construct()
	{
		parent::__construct();
	}
	
	
	public static function validateAttributeValue_FROM($attributeValue, $attributeDefinition)
	{		
		return $attributeValue; 
	}	


	public static function validateContent($content)
	{
		return $content;
	}

	
	public function onOpen()
	{
	    echo sprintf("Saying %s from %s: ", $this->attributes['message'], $this->attributes['from']);
	}

	public function onClose()
	{
	    echo $this->content . "<br/>";
		echo 'Please enjoy the program' . '<br/>';
	}
}

?>
Return current item: PAX