public function build_calendar($check_lists_array) { foreach ($check_lists_array as $check_list) { $check_list_status_manager = new check_list_status_manager($check_list); $check_list_status_info = $check_list_status_manager->get_status_for_check_list(); $this->calendar_array[date("j", $check_list->get_deadline())]["status"] = $check_list_status_info->get_status(); $this->calendar_array[date("j", $check_list->get_deadline())]["info"] = $check_list_status_info->serialize(); } return $this->calendar_array; }
public function build_calendar($check_lists_array) { foreach ($check_lists_array as $check_list) { if (isset($this->control_relation['serie_id']) && $check_list->get_serie_id() != $this->control_relation['serie_id']) { continue; } $check_list_status_manager = new check_list_status_manager($check_list); $check_list_status_info = $check_list_status_manager->get_status_for_check_list(); $month_nr = date("n", $check_list_status_info->get_deadline_date_ts()); $repeat_type = $check_list->get_repeat_type(); $this->calendar_array[$month_nr]['repeat_type'] = $repeat_type; $this->calendar_array[$month_nr]["status"] = $check_list_status_info->get_status(); $this->calendar_array[$month_nr]["info"] = $check_list_status_info->serialize(); } return $this->calendar_array; }