app/dao/meeting_result_dao.rb
# Populates the meeting programs of the event
#

Populates the meeting programs of the event
Populates the meeting programs of the event
def populate_programs( meeting_event = @meeting_event, has_start_list = @has_start_list, populate = false )
      added = 0
      meeting_event.meeting_programs.each do |meeting_program|
        @programs << MeetingResultProgramDAO.new( meeting_program, has_start_list, populate )
        added += 1
        gender = meeting_program.gender_type.i18n_short
        category = meeting_program.get_category_type_name
        if !@categories[gender]
          @categories[gender] = []
        end
        @categories[gender] << category
      end
      added
    end
def populate_programs ( meeting_event = @meeting_event , has_start_list = @has_start_list , populate = false ) added = 0 meeting_event . meeting_programs . each do | meeting_program | @programs << MeetingResultProgramDAO . new ( meeting_program , has_start_list , populate ) added += 1 gender = meeting_program . gender_type . i18n_short category = meeting_program . get_category_type_name if ! @categories [ gender ] @categories [ gender ] = [ ] end @categories [ gender ] << category end added end
Populates the meeting programs of the event
Populates the meeting programs of the event
meeting_event
<not_specific>
has_start_list
<not_specific>
populate
<not_specific>