|
@@ 350-357 (lines=8) @@
|
| 347 |
|
$curSchedule = ""; |
| 348 |
|
$mode = ""; |
| 349 |
|
|
| 350 |
|
if (isset($rows[$locationsFieldsMapping['schedule_mode']])) { |
| 351 |
|
if ($this->validateScheduleMode($rows[$locationsFieldsMapping['schedule_mode']])) { |
| 352 |
|
$curSchedule = '"mode":"'.$rows[$locationsFieldsMapping['schedule_mode']].'",'; |
| 353 |
|
$mode = $rows[$locationsFieldsMapping['schedule_mode']]; |
| 354 |
|
} else { |
| 355 |
|
array_push($results['fail'],"$iRow --> Wrong schedule mode parameter"); |
| 356 |
|
$curSchedule = ""; |
| 357 |
|
} |
| 358 |
|
} else { |
| 359 |
|
array_push($results['fail'],"$iRow --> The schedule mode parameter is not set"); |
| 360 |
|
$curSchedule = ""; |
|
@@ 402-409 (lines=8) @@
|
| 399 |
|
break; |
| 400 |
|
case 'monthly': |
| 401 |
|
$monthlyMode = ""; |
| 402 |
|
if (isset($rows[$locationsFieldsMapping['monthly_mode']])) { |
| 403 |
|
if ($this->validateScheduleMonthlyMode($rows[$locationsFieldsMapping['monthly_mode']])) { |
| 404 |
|
$monthlyMode = $rows[$locationsFieldsMapping['monthly_mode']]; |
| 405 |
|
$curSchedule.='"mode": "'.$rows[$locationsFieldsMapping['monthly_mode']].'",'; |
| 406 |
|
} else { |
| 407 |
|
array_push($results['fail'],"$iRow --> Wrong monthly mode"); |
| 408 |
|
$curSchedule = ""; |
| 409 |
|
} |
| 410 |
|
} else { |
| 411 |
|
array_push($results['fail'],"$iRow --> The parameter sched_monthly_mode is not set"); |
| 412 |
|
$curSchedule = ""; |