|
@@ 701-705 (lines=5) @@
|
| 698 |
|
$sitemapObject->template = $postValues['template']; |
| 699 |
|
$sitemapObject->regex = isset($postValues['regex']); |
| 700 |
|
$sitemapObject->parameters = new \stdClass(); |
| 701 |
|
if (isset($postValues['parameterNames'], $postValues['parameterValues'])) { |
| 702 |
|
foreach ($postValues['parameterNames'] as $key => $value) { |
| 703 |
|
$sitemapObject->parameters->$value = $postValues['parameterValues'][$key]; |
| 704 |
|
} |
| 705 |
|
} |
| 706 |
|
return $sitemapObject; |
| 707 |
|
} else { |
| 708 |
|
throw new \Exception('Trying to create sitemap item with invalid data.'); |
|
@@ 1408-1412 (lines=5) @@
|
| 1405 |
|
$applicationComponent->slug = slugify($postValues['title']); |
| 1406 |
|
$applicationComponent->component = $postValues['component']; |
| 1407 |
|
$applicationComponent->parameters = new \stdClass(); |
| 1408 |
|
if (isset($postValues['parameterNames'], $postValues['parameterValues'])) { |
| 1409 |
|
foreach ($postValues['parameterNames'] as $key => $value) { |
| 1410 |
|
$applicationComponent->parameters->$value = $postValues['parameterValues'][$key]; |
| 1411 |
|
} |
| 1412 |
|
} |
| 1413 |
|
return $applicationComponent; |
| 1414 |
|
} else { |
| 1415 |
|
throw new \Exception('Trying to create application component with invalid data.'); |