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

	require_once("LenexBase.class.php");
	
	define ("LENEX_FEE_TYPE_CLUB","CLUB");
	define ("LENEX_FEE_TYPE_ATHLETE","ATHLETE");
	define ("LENEX_FEE_TYPE_RELAY","RELAY");
	
	/*
		currency according to ISO 4217
		http://www.swimrankings.net/files/Lenex_Currency.txt
		http://www.iso.org/iso/en/prods-services/popstds/currencycodeslist.html
	*/

	class LenexFee extends LenexBase {
		
		var $currency="";
		var $type="";
		var $value="";

		function LenexFee($type,$value,$currency="") {
			$this->type=$type;
			$this->value=$value;
			$this->currency=$currency;
		}
		/*static*/
		function fromSAX($attrs) {
			$obj =& new LenexFee(@$attrs["TYPE"],@$attrs["VALUE"],@$attrs["CURRENCY"]);
			return $obj;
		}
		
		/*override*/
		function setParent(&$obj) {
			$obj->setFee($this);
		}
	}

?>
Return current item: PHP Lenex 2