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

	require_once("LenexBase.class.php");
	require_once("LenexAgeGroup.class.php");
	require_once("LenexTimeStandard.class.php");
	
	define ("LENEX_TIMESTANDARDLIST_TYPE_DEFAULT","DEFAULT");
	define ("LENEX_TIMESTANDARDLIST_TYPE_MAXIMUM","MAXIMUM");
	define ("LENEX_TIMESTANDARDLIST_TYPE_MINIMUM","MINIMUM");

	class LenexTimeStandardList extends LenexBase {
		
		var $document=NULL;
		var $index=-1;
		
		var $ageGroup=NULL;
		var $course="";
		var $gender="";
		var $name="";
		var $qualifyFrom="";
		var $qualifyUntil="";
		var $timeStandards=array();
		var $type=LENEX_TIMESTANDARDLIST_TYPE_MAXIMUM;

		function LenexTimeStandardList($course,$gender,$name) {
			$this->course=$course;
			$this->gender=$gender;
			$this->name=$name;
		}

		/*static*/
		function fromSAX($attrs) {
			$obj =& new LenexTimeStandardList(@$attrs["COURSE"],@$attrs["GENDER"],@$attrs["NAME"]);
			$obj->qualifyFrom=@$attrs["QUALIFYFROM"];
			$obj->qualifyUntil=@$attrs["QUALIFYUNTIL"];
			$obj->type=@$attrs["TYPE"];
			return $obj;
		}
		
		/*override*/
		function setParent(&$obj) {
			$obj->addTimeStandardList($this);
		}
		
		function setAgeGroup(&$a) {
			$this->ageGroup =& $a;
		}
		function addTimeStandard(&$t) {
			$this->timeStandards[] =& $t;
		}
		
	}
?>
Return current item: PHP Lenex 2