public static function admin_edit($id, $errors = null)
 {
     self::check_admin_logged_in();
     $user = User::find($id);
     $competitions = array();
     if ($user->type == 'recorder') {
         $competitions = Competition::all('');
     }
     self::admin_edit_view($user, $competitions, $errors);
 }
 public static function index()
 {
     $name = self::get_search_term();
     $competitions = Competition::all($name);
     View::make('competition/index.html', array('competitions' => $competitions));
 }