2 /////////////////////////////////////////////////////////////////
3 // WARNING : this is a generated file, don't change it !
4 /////////////////////////////////////////////////////////////////
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;
17 function __construct()
19 global $WS_TUserRole_InvalidValue;
20 $this->Value
= $WS_TUserRole_InvalidValue;
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)
41 $this->Value
= $WS_TUserRole_InvalidValue;
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;
56 $this->Value
= $WS_TUserRole_InvalidValue;