<?php
/** class for debugging 
 *  \attention Attentione!
**/

class debug {

 	/** @var string Description */
	private $text; 

   /** @staticvar <i>string</i> Debug-Text2 */
	public static $text2 = "text2";
		
	/** constructor
	 *  @return none
	 */
	public function debug() {
		$this->text = '';
	}//debug
	
	/** sets Debug text
	 *  @param string $p_text Debug-Text
	 *  @return none
	 */
	public function setDebugText($p_text) {
		$this->text = $p_text;
	}//setText
	
	/** returns Debug text
	 *  @return string $text Debug-Text 
	 */
	public function getDebugText() {
		return $this->text;
	}//getDebugText
	
	/** prints Debug text 
	 *  @return none
	 */
	public function printDebugText() {
		trigger_error($this->getDebugText());
	}//printDebugText

}//debug

?>