cloudcontrol/library/storage/factories/ApplicationComponentFactory.php 1 location
|
@@ 27-31 (lines=5) @@
|
| 24 |
|
$applicationComponent->slug = slugify($postValues['title']); |
| 25 |
|
$applicationComponent->component = $postValues['component']; |
| 26 |
|
$applicationComponent->parameters = new \stdClass(); |
| 27 |
|
if (isset($postValues['parameterNames'], $postValues['parameterValues'])) { |
| 28 |
|
foreach ($postValues['parameterNames'] as $key => $value) { |
| 29 |
|
$applicationComponent->parameters->$value = $postValues['parameterValues'][$key]; |
| 30 |
|
} |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
return $applicationComponent; |
| 34 |
|
} else { |
cloudcontrol/library/storage/factories/SitemapItemFactory.php 1 location
|
@@ 32-36 (lines=5) @@
|
| 29 |
|
$sitemapObject->template = $postValues['template']; |
| 30 |
|
$sitemapObject->regex = isset($postValues['regex']); |
| 31 |
|
$sitemapObject->parameters = new \stdClass(); |
| 32 |
|
if (isset($postValues['parameterNames'], $postValues['parameterValues'])) { |
| 33 |
|
foreach ($postValues['parameterNames'] as $key => $value) { |
| 34 |
|
$sitemapObject->parameters->$value = $postValues['parameterValues'][$key]; |
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
return $sitemapObject; |
| 39 |
|
} else { |