app/dao/meeting_schedule_dao.rb
# Adds a new event to events colelction

Adds a new event to events colelction
Adds a new event to events colelction
def add_event( event_key, event_id, event_code, is_a_relay = false, event_order = 0, heat_type = nil, is_out_of_race = false, has_separate_gender = true, has_separate_categories = false, notes = '' )
      @events[event_key] = MeetingScheduleEventDAO.new( event_id, event_code, is_a_relay, event_order, heat_type, is_out_of_race, has_separate_gender, has_separate_categories, notes )
      if is_a_relay
        @relays += 1
      else
        @individuals += 1
      end
      @events.size
    end
def add_event ( event_key , event_id , event_code , is_a_relay = false , event_order = 0 , heat_type = nil , is_out_of_race = false , has_separate_gender = true , has_separate_categories = false , notes = '' ) @events [ event_key ] = MeetingScheduleEventDAO . new ( event_id , event_code , is_a_relay , event_order , heat_type , is_out_of_race , has_separate_gender , has_separate_categories , notes ) if is_a_relay @relays += 1 else @individuals += 1 end @events . size end
Adds a new event to events colelction
Adds a new event to events colelction
event_key
<not_specific>
event_id
<not_specific>
event_code
<not_specific>
is_a_relay
<not_specific>
event_order
<not_specific>
heat_type
<not_specific>
is_out_of_race
<not_specific>
has_separate_gender
<not_specific>
has_separate_categories
<not_specific>
notes
<not_specific>