app/controllers/schedules_controller.rb
# find schedule_ids during the dates(range, db format) for user
find schedule_ids during the dates(range, db format) for user
find schedule_ids during the dates ( range db format ) for user
def schedule_ids_during(date_cond, user = @current_user)
    a_net = [] << Basic_A_Net
    if @display_mode == "space_schedules"
      @space_span = @background_params[:space_span] || Space::Default
      a_net << ":Article .place_run_id >> space:Space .fullname contained_by '#{@space_span}'"
      space_cond = nil
      @receive_mode = EXTENDED
      @background_params.merge! :space_span => @space_span, :receive_mode => @receive_mode
    end
    ArticleThread.find :all, 
                 :scope      => a_net << personal_setting,  
                 :local_assert_time => local_assert_time_for_destination("articles.start_date"),
                 :select     => "articles.id",
                 :conditions => merge_conditions(date_cond, space_cond, forum_cond, *basic_cond(user)),
                 :group      => "articles.id"
  end
def schedule_ids_during ( date_cond , user = @current_user ) a_net = [ ] << Basic_A_Net if @display_mode == "space_schedules" @space_span = @background_params [ :space_span ] || Space :: Default a_net << ":Article .place_run_id >> space:Space .fullname contained_by '#{@space_span}'" space_cond = nil @receive_mode = EXTENDED @background_params . merge! :space_span => @space_span , :receive_mode => @receive_mode end ArticleThread . find :all , :scope => a_net << personal_setting , :local_assert_time => local_assert_time_for_destination ( "articles.start_date" ) , :select => "articles.id" , :conditions => merge_conditions ( date_cond , space_cond , forum_cond , * basic_cond ( user ) ) , :group => "articles.id" end
find schedule_ids during the dates(range, db format) for user
find schedule_ids during the dates ( range db format ) for user
# regarding space schedule condition # when space schedule required,  receive_mode is forced to be extended
date_cond
<not_specific>
user
<not_specific>