<?
/*
- author: Skakunov Alexander [hide@address.com]
- filename: Error.class.php
- date: 28.05.2007
- description: Error class is convenient to track errors. The display() method can be improved to support more sophisticated design and even animation
*/
class Error
{
public $text;
public function Error()
{
}
public function display()
{
$str = '';
if( !empty($this->text) )
{
$str = '<div align="center" style="border: 2px solid red; color: red; font-weight: bold">'.$this->text.'</div>';
}
return $str;
}
}
?>