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

	require_once("LenexBase.class.php");
	require_once("LenexAgeGroup.class.php");
	require_once("LenexRecord.class.php");
	
	define ("LENEX_RECORDLIST_TYPE_UNKNOWN","");
	define ("LENEX_RECORDLIST_TYPE_WR","WR");
	define ("LENEX_RECORDLIST_TYPE_OR","OR");
	define ("LENEX_RECORDLIST_TYPE_ER","ER");
	define ("LENEX_RECORDLIST_TYPE_PAR","PAR");
	define ("LENEX_RECORDLIST_TYPE_AFR","AFR");
	define ("LENEX_RECORDLIST_TYPE_AR","AR");
	define ("LENEX_RECORDLIST_TYPE_OCR","OCR");
	define ("LENEX_RECORDLIST_TYPE_CWR","CWR");

	class LenexRecordList extends LenexBase {
		
		var $document=NULL;
		var $index=-1;
		
		var $ageGroup=NULL;
		var $course="";
		var $gender="";
		var $handicap=""; // no object but name
		var $name="";
		var $records=array();
		var $updated="";
		var $type=LENEX_RECORDLIST_TYPE_UNKNOWN;

		function LenexRecordList($course,$gender,$name,$type="",$updated="") {
			$this->course=$course;
			$this->gender=$gender;
			$this->name=$name;
			$this->updated=$updated;
		}

		/*static*/
		function fromSAX($attrs) {
			$obj =& new LenexRecordList(@$attrs["COURSE"],@$attrs["GENDER"],@$attrs["NAME"],@$attrs["TYPE"],@$attrs["UPDATED"]);
			return $obj;
		}
		
		/*override*/
		function setParent(&$obj) {
			$obj->addRecordList($this);
		}
		
		function setAgeGroup(&$a) {
			$this->ageGroup =& $a;
		}
		function addRecord(&$r) {
			$this->Records[] =& $r;
		}
		
	}
?>
Return current item: PHP Lenex 2