Core/Executor/RoleManager.php 1 location
|
@@ 229-234 (lines=6) @@
|
| 226 |
|
|
| 227 |
|
$limitationValue = is_array($limitation['values']) ? $limitation['values'] : array($limitation['values']); |
| 228 |
|
|
| 229 |
|
foreach($limitationValue as $id => $value) { |
| 230 |
|
if ($this->referenceResolver->isReference($value)) { |
| 231 |
|
$value = $this->referenceResolver->getReferenceValue($value); |
| 232 |
|
$limitationValue[$id] = $value; |
| 233 |
|
} |
| 234 |
|
} |
| 235 |
|
$limitationValue = $this->roleHandler->convertLimitationToValue($limitation['identifier'], $limitationValue); |
| 236 |
|
return $limitationType->buildValue($limitationValue); |
| 237 |
|
} |
Core/Executor/ContentTypeManager.php 1 location
|
@@ 460-470 (lines=11) @@
|
| 457 |
|
|
| 458 |
|
if (is_array($value)) { |
| 459 |
|
$ret = array(); |
| 460 |
|
foreach ($value as $key => $val) |
| 461 |
|
{ |
| 462 |
|
$ret[$key] = $val; |
| 463 |
|
|
| 464 |
|
// we do NOT check for refs in field settings which are arrays, even though we could, maybe *should*... |
| 465 |
|
if (!is_array($val)) { |
| 466 |
|
if ($this->referenceResolver->isReference($val)) { |
| 467 |
|
$ret[$key] = $this->referenceResolver->getReferenceValue($val); |
| 468 |
|
} |
| 469 |
|
} |
| 470 |
|
} |
| 471 |
|
} |
| 472 |
|
else { |
| 473 |
|
$ret = $value; |
Core/Executor/ContentManager.php 1 location
|
@@ 104-111 (lines=8) @@
|
| 101 |
|
$locations = array($locationCreateStruct); |
| 102 |
|
|
| 103 |
|
if (isset($this->dsl['other_locations'])) { |
| 104 |
|
foreach ($this->dsl['other_locations'] as $otherLocation) { |
| 105 |
|
$locationId = $otherLocation; |
| 106 |
|
if ($this->referenceResolver->isReference($locationId)) { |
| 107 |
|
$locationId = $this->referenceResolver->getReferenceValue($otherLocation); |
| 108 |
|
} |
| 109 |
|
$secondaryLocationCreateStruct = $locationService->newLocationCreateStruct($locationId); |
| 110 |
|
array_push($locations, $secondaryLocationCreateStruct); |
| 111 |
|
} |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
// create a draft using the content and location create struct and publish it |