Beispiel #1
0
 static function PrivateStaticConstructor()
 {
     // todo - should be internationalized; should be easy enough with dates!
     if (!is_null(RoleEnum::$ROLE_ARRAY)) {
         return;
     }
     RoleEnum::$ROLE_ARRAY = array(CREWMEMBER, SUPERVISOR, ORGANIZER);
     RoleEnum::$STRING_ARRAY = array(CREWMEMBER => "Crew", SUPERVISOR => "Supervisor", ORGANIZER => "Organizer");
     RoleEnum::$OPTION_CREWMEMBER = array(CREWMEMBER, RoleEnum::$STRING_ARRAY[CREWMEMBER]);
     RoleEnum::$OPTION_SUPERVISOR = array(SUPERVISOR, RoleEnum::$STRING_ARRAY[SUPERVISOR]);
     RoleEnum::$OPTION_ORGANIZER = array(ORGANIZER, RoleEnum::$STRING_ARRAY[ORGANIZER]);
     RoleEnum::$OPTION = array(RoleEnum::$OPTION_CREWMEMBER, RoleEnum::$OPTION_SUPERVISOR, RoleEnum::$OPTION_ORGANIZER);
 }