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

	require_once("LenexBase.class.php");
	require_once("LenexAthlete.class.php");
	require_once("LenexMeetInfo.class.php");
	require_once("LenexRelay.class.php");

	class LenexRecord extends LenexBase {
		
		var $athlete=NULL;
		var $comment="";
		var $meetInfo=NULL;
		var $relay=NULL;
		var $splits=array();
		var $swimStyle=NULL;
		var $swimTime="";
		var $status="";

		function LenexRecord($swimTime) {
			$this->swimTime=$swimTime;
		}
		
		/*static*/
		function fromSAX($attrs) {
			$obj =& new LenexRecord(@$attrs["SWIMTIME"]);
			$obj->comment=@$attrs["COMMENT"];
			$obj->status=@$attrs["STATUS"];
			return $obj;
		}
		
		/*override*/
		function setParent(&$obj) {
			$obj->addRecord($this);
		}
		
		function setAthlete(&$a) {
			$this->athlete=$a;
		}		
		function setMeetInfo(&$m) {
			$this->meetInfo=$m;
		}		
		function setRelay(&$r) {
			$this->relay=$r;
		}		
		function setSwimStyle(&$s) {
			$this->swimStyle=$s;
		}		
		function addSplit(&$s) {
			$this->splits[]=$s;
		}

	}

?>
Return current item: PHP Lenex 2