@@ 370-377 (lines=8) @@ | ||
367 | $curSchedule = ""; |
|
368 | $mode = ""; |
|
369 | ||
370 | if (isset($rows[$locationsFieldsMapping['schedule_mode']])) { |
|
371 | if ($this->validateScheduleMode($rows[$locationsFieldsMapping['schedule_mode']])) { |
|
372 | $curSchedule = '"mode":"'.$rows[$locationsFieldsMapping['schedule_mode']].'",'; |
|
373 | $mode = $rows[$locationsFieldsMapping['schedule_mode']]; |
|
374 | } else { |
|
375 | array_push($results['fail'], "$iRow --> Wrong schedule mode parameter"); |
|
376 | $curSchedule = ""; |
|
377 | } |
|
378 | } else { |
|
379 | array_push($results['fail'], "$iRow --> The schedule mode parameter is not set"); |
|
380 | $curSchedule = ""; |
|
@@ 422-429 (lines=8) @@ | ||
419 | break; |
|
420 | case 'monthly': |
|
421 | $monthlyMode = ""; |
|
422 | if (isset($rows[$locationsFieldsMapping['monthly_mode']])) { |
|
423 | if ($this->validateScheduleMonthlyMode($rows[$locationsFieldsMapping['monthly_mode']])) { |
|
424 | $monthlyMode = $rows[$locationsFieldsMapping['monthly_mode']]; |
|
425 | $curSchedule .= '"mode": "'.$rows[$locationsFieldsMapping['monthly_mode']].'",'; |
|
426 | } else { |
|
427 | array_push($results['fail'], "$iRow --> Wrong monthly mode"); |
|
428 | $curSchedule = ""; |
|
429 | } |
|
430 | } else { |
|
431 | array_push($results['fail'], "$iRow --> The parameter sched_monthly_mode is not set"); |
|
432 | $curSchedule = ""; |