Location: PHPKode > scripts > PHP Lenex 2 > php-lenex-2/LenexClasses/LenexBase.class.php
<?

	/*abstract*/
	class LenexBase {

		function LenexBase() {
			$error = "you cannot create an object for class ".get_class($this);
			trigger_error ($error,E_USER_ERROR);
			die ($error);
		}

		/*static*/
		function fromSAX($attrs) {
			$error = "you cannot staticly create an object for class ".get_class($this);
			trigger_error ($error,E_USER_ERROR);
			die ($error);
		}
		
		function setParent(&$obj) {
			$error = "Parent cannot be set for class ".get_class($this);
			trigger_error ($error,E_USER_ERROR);
			die ($error);
		}
		
		function toString() {
			return @$this->name;
		}
		
	}

?>
Return current item: PHP Lenex 2