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