@@ 320-329 (lines=10) @@ | ||
317 | ||
318 | $failCount = sizeof($results['fail']); |
|
319 | ||
320 | if (isset($rows[$locationsFieldsMapping['schedule_mode']])) { |
|
321 | if ($this->validateScheduleMode($rows[$locationsFieldsMapping['schedule_mode']])) { |
|
322 | $curSchedule = '"mode":"'.$rows[$locationsFieldsMapping['schedule_mode']].'",'; |
|
323 | $mode = $rows[$locationsFieldsMapping['schedule_mode']]; |
|
324 | } else { |
|
325 | array_push($results['fail'], "$iRow --> Wrong schedule mode parameter"); |
|
326 | } |
|
327 | } else { |
|
328 | array_push($results['fail'], "$iRow --> The schedule mode parameter is not set"); |
|
329 | } |
|
330 | ||
331 | if (isset($rows[$locationsFieldsMapping['schedule_enabled']])) { |
|
332 | if ($this->validateScheduleEnable($rows[$locationsFieldsMapping['schedule_enabled']])) { |
|
@@ 366-375 (lines=10) @@ | ||
363 | break; |
|
364 | case 'monthly': |
|
365 | $monthlyMode = ""; |
|
366 | if (isset($rows[$locationsFieldsMapping['monthly_mode']])) { |
|
367 | if ($this->validateScheduleMonthlyMode($rows[$locationsFieldsMapping['monthly_mode']])) { |
|
368 | $monthlyMode = $rows[$locationsFieldsMapping['monthly_mode']]; |
|
369 | $curSchedule .= '"mode": "'.$rows[$locationsFieldsMapping['monthly_mode']].'",'; |
|
370 | } else { |
|
371 | array_push($results['fail'], "$iRow --> Wrong monthly mode"); |
|
372 | } |
|
373 | } else { |
|
374 | array_push($results['fail'], "$iRow --> The parameter sched_monthly_mode is not set"); |
|
375 | } |
|
376 | ||
377 | if ($monthlyMode!="") { |
|
378 | switch ($monthlyMode) { |