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

	require_once("LenexBase.class.php");
	require_once("LenexAthlete.class.php");
	
	define ("LENEX_RELAYPOSITION_STATUS_NONE","");
	define ("LENEX_RELAYPOSITION_STATUS_DSQ","DSQ");
	define ("LENEX_RELAYPOSITION_STATUS_DNF","DNF");

	class LenexRelayPosition extends LenexBase {
		
		var $athlete=NULL;
		var $athleteid="";
		var $number="";
		var $reactiontime="";
		var $status=LENEX_RELAYPOSITION_STATUS_NONE;

		function LenexRelayPosition($number) {
			$this->number=$number;
		}
		
		/*static*/
		function fromSAX($attrs) {
			$obj =& new LenexRelayPosition(@$attrs["NUMBER"]);
			$obj->athleteid=@$attrs["ATHLETEID"];
			$obj->reactiontime=@$attrs["REACTIONTIME"];
			$obj->status=@$attrs["STATUS"];
			return $obj;
		}
		
		/*override*/
		function setParent(&$obj) {
			$obj->addRelayPosition($this);
		}
		
		function setAthlete(&$a) {
			$this->athlete =& $a;
		}

	}

?>
Return current item: PHP Lenex 2