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

	require_once("LenexBase.class.php");
	
	define ("LENEX_AGEDATE_TYPE_YEAR","YEAR");
	define ("LENEX_AGEDATE_TYPE_DATE","DATE");
	define ("LENEX_AGEDATE_TYPE_POR","POR");
	define ("LENEX_AGEDATE_TYPE_CANFNQ","CAN.FNQ");
	define ("LENEX_AGEDATE_TYPE_LUX","LUX");

	class LenexAgeDate extends LenexBase {
		
		var $type="";
		var $value="";

		function LenexAgeDate($type,$value) {
			$this->type=$type;
			$this->value=$value;
		}
		/*static*/
		function fromSAX($attrs) {
			$obj =& new LenexAgeDate(@$attrs["TYPE"],@$attrs["VALUE"]);
			return $obj;
		}
		
		/*override*/
		function setParent(&$obj) {
			$obj->setAgeDate($this);
		}
		
		/*override*/
		function toString() {
			return $this->value;
		}
	}

?>
Return current item: PHP Lenex 2