undef HALF_FREQUENCY_SENDING_TO_CLIENT
[ryzomcore.git] / web / public_php / ring / welcome_service_itf.php
blob8b043bf55d6fe041230e350242ec722712b47215
1 <?php
2 /////////////////////////////////////////////////////////////////
3 // WARNING : this is a generated file, don't change it !
4 /////////////////////////////////////////////////////////////////
6 $arrayCounter = 0;
7 $WS_TUserRole_EnumValues[$arrayCounter++] = "ur_player";
8 $WS_TUserRole_EnumValues[$arrayCounter++] = "ur_editor";
9 $WS_TUserRole_EnumValues[$arrayCounter++] = "ur_animator";
10 $WS_TUserRole_EnumValues[$arrayCounter] = "invalid";
11 $WS_TUserRole_InvalidValue = $arrayCounter;
13 class WS_TUserRole
15 var $Value;
17 function __construct()
19 global $WS_TUserRole_InvalidValue;
20 $this->Value = $WS_TUserRole_InvalidValue;
23 function toString()
25 global $WS_TUserRole_EnumValues;
26 return $WS_TUserRole_EnumValues[$this->Value];
29 function fromString($strValue)
31 global $WS_TUserRole_EnumValues;
32 foreach ($WS_TUserRole_EnumValues as $k => $v)
34 if ($strValue === $v)
36 $this->Value = $k;
37 return;
41 $this->Value = $WS_TUserRole_InvalidValue;
44 function toInt()
46 return $this->Value;
49 function fromInt($intValue)
51 global $WS_TUserRole_InvalidValue;
52 global $WS_TUserRole_EnumValues;
53 if (array_key_exists($intValue, $WS_TUserRole_EnumValues))
54 $this->Value = $intValue;
55 else
56 $this->Value = $WS_TUserRole_InvalidValue;