@@ 300-307 (lines=8) @@ | ||
297 | $schedule=""; |
|
298 | $mode=""; |
|
299 | ||
300 | if (isset($rows[$locationsFieldsMapping['schedule_mode']])) { |
|
301 | if ($this->validateScheduleMode($rows[$locationsFieldsMapping['schedule_mode']])) { |
|
302 | $schedule='"mode":"'.$rows[$locationsFieldsMapping['schedule_mode']].'",'; |
|
303 | $mode=$rows[$locationsFieldsMapping['schedule_mode']]; |
|
304 | } |
|
305 | else {array_push($results['fail'],"$iRow --> Wrong schedule mode parameter"); $schedule="";} |
|
306 | } |
|
307 | else {array_push($results['fail'],"$iRow --> The schedule mode parameter is not set"); $schedule="";} |
|
308 | ||
309 | if (isset($rows[$locationsFieldsMapping['schedule_enabled']])) { |
|
310 | if ($this->validateScheduleEnable($rows[$locationsFieldsMapping['schedule_enabled']])) { |
|
@@ 340-347 (lines=8) @@ | ||
337 | break; |
|
338 | case 'monthly': |
|
339 | $monthlyMode=""; |
|
340 | if (isset($rows[$locationsFieldsMapping['monthly_mode']])) { |
|
341 | if ($this->validateScheduleMonthlyMode($rows[$locationsFieldsMapping['monthly_mode']])) { |
|
342 | $monthlyMode=$rows[$locationsFieldsMapping['monthly_mode']]; |
|
343 | $schedule.='"mode": "'.$rows[$locationsFieldsMapping['monthly_mode']].'",'; |
|
344 | } |
|
345 | else {array_push($results['fail'],"$iRow --> Wrong monthly mode"); $schedule="";} |
|
346 | } |
|
347 | else {array_push($results['fail'],"$iRow --> The parameter sched_monthly_mode is not set"); $schedule="";} |
|
348 | ||
349 | if ($monthlyMode!="") { |
|
350 | switch ($monthlyMode) { |