private function getCompetitionData($model)
 {
     $wcaDelegates = array();
     foreach (User::getDelegates(User::IDENTITY_WCA_DELEGATE) as $delegate) {
         $wcaDelegates[$delegate->id] = $delegate->name_zh ?: $delegate->name;
     }
     $ccaDelegates = array();
     foreach (User::getDelegates(User::IDENTITY_CCA_DELEGATE) as $delegate) {
         $ccaDelegates[$delegate->id] = $delegate->name_zh ?: $delegate->name;
     }
     $organizers = User::getOrganizers();
     $types = Competition::getTypes();
     $checkPersons = Competition::getCheckPersons();
     $normalEvents = Events::getNormalEvents();
     $otherEvents = Events::getOtherEvents();
     $cities = Region::getAllCities();
     return array('model' => $model, 'normalEvents' => $normalEvents, 'otherEvents' => $otherEvents, 'cities' => $cities, 'wcaDelegates' => $wcaDelegates, 'ccaDelegates' => $ccaDelegates, 'organizers' => $organizers, 'types' => $types, 'checkPersons' => $checkPersons);
 }