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

	require_once("LenexBase.class.php");
	
	define ("LENEX_QUALIFY_CONVERSION_NONE","NONE");
	define ("LENEX_QUALIFY_CONVERSION_FINA_POINTS","FINA_POINTS");
	define ("LENEX_QUALIFY_CONVERSION_LCM_AS_SCM","LCM_AS_SCM");
	
	define ("LENEX_QUALIFY_RELAYMODE_NONE","NONE");
	define ("LENEX_QUALIFY_RELAYMODE_CLUB","CLUB");
	define ("LENEX_QUALIFY_RELAYMODE_INDIVIDUAL","INDIVIDUAL");

	class LenexQualify extends LenexBase {
		
		var $conversion = LENEX_QUALIFY_CONVERSION_NONE;
		var $relaymode = LENEX_QUALIFY_RELAYMODE_NONE;
		var $from = "";
		var $until = "";

		function LenexQualify($from,$until,$conversion=LENEX_QUALIFY_CONVERSION_NONE,$relaymode=LENEX_QUALIFY_RELAYMODE_NONE) {
			$this->conversion=$conversion;
			$this->relaymode=$relaymode;
			$this->from=$from;
			$this->until=$until;
		}
		
		/*static*/
		function fromSAX($attrs) {
			$obj =& new LenexQualify(@$attrs["FROM"],@$attrs["UNTIL"],@$attrs["CONVERSION"],@$attrs["RELAYMODE"]);
			return $obj;
		}
		
		/*override*/
		function setParent(&$obj) {
			$obj->setQualify($this);
		}

	}

?>
Return current item: PHP Lenex 2