<?
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);
}
}
?>