|
@@ 525-529 (lines=5) @@
|
| 522 |
|
$sitemapObject->template = $postValues['template']; |
| 523 |
|
$sitemapObject->regex = isset($postValues['regex']); |
| 524 |
|
$sitemapObject->parameters = new \stdClass(); |
| 525 |
|
if (isset($postValues['parameterNames'], $postValues['parameterValues'])) { |
| 526 |
|
foreach ($postValues['parameterNames'] as $key => $value) { |
| 527 |
|
$sitemapObject->parameters->$value = $postValues['parameterValues'][$key]; |
| 528 |
|
} |
| 529 |
|
} |
| 530 |
|
return $sitemapObject; |
| 531 |
|
} else { |
| 532 |
|
throw new \Exception('Trying to create sitemap item with invalid data.'); |
|
@@ 1239-1243 (lines=5) @@
|
| 1236 |
|
$applicationComponent->slug = slugify($postValues['title']); |
| 1237 |
|
$applicationComponent->component = $postValues['component']; |
| 1238 |
|
$applicationComponent->parameters = new \stdClass(); |
| 1239 |
|
if (isset($postValues['parameterNames'], $postValues['parameterValues'])) { |
| 1240 |
|
foreach ($postValues['parameterNames'] as $key => $value) { |
| 1241 |
|
$applicationComponent->parameters->$value = $postValues['parameterValues'][$key]; |
| 1242 |
|
} |
| 1243 |
|
} |
| 1244 |
|
return $applicationComponent; |
| 1245 |
|
} else { |
| 1246 |
|
throw new \Exception('Trying to create application component with invalid data.'); |