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

	require_once("LenexBase.class.php");
	require_once("LenexMeetInfo.class.php");
	require_once("LenexRelayPosition.class.php");
	
	define ("LENEX_ENTRY_STATUS_REGULAR","");
	define ("LENEX_ENTRY_STATUS_EXH","EXH");
	define ("LENEX_ENTRY_STATUS_WDR","WDR");

	class LenexEntry extends LenexBase {
		
		var $ageGroupid="";
		var $entryTime="";
		var $eventid="";
		var $heat="";
		var $lane="";
		var $meetInfo=NULL;
		var $relayPositions=array();
		var $status=LENEX_ENTRY_STATUS_REGULAR;

		function LenexEntry($eventid,$status=LENEX_ENTRY_STATUS_REGULAR,$ageGroupid="",$entryTime="",$heat="",$lane="") {
			$this->eventid=$eventid;
			$this->status=$status;
			$this->ageGroupid=$ageGroupid;
			$this->entryTime=$entryTime;
			$this->heat=$heat;
			$this->lane=$lane;
		}
		
		/*static*/
		function fromSAX($attrs) {
			$obj =& new LenexEntry(@$attrs["EVENTID"],@$attrs["STATUS"],@$attrs["AGEGROUPID"],@$attrs["ENTRYTIME"],@$attrs["HEAT"],@$attrs["LANE"]);
			return $obj;
		}
		
		/*override*/
		function setParent(&$obj) {
			$obj->addEntry($this);
		}
		
		function setMeetInfo(&$m) {
			$this->meetInfo =& $m;
		}
		function addRelayPosition(&$r) {
			$this->relayPositions[] =& $r;
		}

	}

?>
Return current item: PHP Lenex 2