eZ/Publish/Core/REST/Client/Output/ValueObjectVisitor/ContentTypeCreateStruct.php 1 location
|
@@ 95-103 (lines=9) @@
|
| 92 |
|
$generator->endObjectElement('User'); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
if (!empty( $contentCreateStruct->fieldDefinitions)) { |
| 96 |
|
$generator->startHashElement('FieldDefinitions'); |
| 97 |
|
$generator->startList('FieldDefinition'); |
| 98 |
|
foreach ($contentCreateStruct->fieldDefinitions as $fieldDefinitionCreateStruct) { |
| 99 |
|
$visitor->visitValueObject($fieldDefinitionCreateStruct); |
| 100 |
|
} |
| 101 |
|
$generator->endList('FieldDefinition'); |
| 102 |
|
$generator->endHashElement('FieldDefinitions'); |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
$generator->endObjectElement('ContentTypeCreate'); |
| 106 |
|
} |
eZ/Publish/Core/REST/Client/Output/ValueObjectVisitor/PolicyCreateStruct.php 1 location
|
@@ 40-50 (lines=11) @@
|
| 37 |
|
$generator->endValueElement('function'); |
| 38 |
|
|
| 39 |
|
$limitations = $data->getLimitations(); |
| 40 |
|
if (!empty($limitations)) { |
| 41 |
|
$generator->startObjectElement('limitations'); |
| 42 |
|
$generator->startList('limitations'); |
| 43 |
|
|
| 44 |
|
foreach ($limitations as $limitation) { |
| 45 |
|
$visitor->visitValueObject($limitation); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
$generator->endList('limitations'); |
| 49 |
|
$generator->endObjectElement('limitations'); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
$generator->endObjectElement('PolicyCreate'); |
| 53 |
|
} |
eZ/Publish/Core/REST/Client/Output/ValueObjectVisitor/PolicyUpdateStruct.php 1 location
|
@@ 34-44 (lines=11) @@
|
| 31 |
|
$visitor->setHeader('Content-Type', $generator->getMediaType('PolicyUpdate')); |
| 32 |
|
|
| 33 |
|
$limitations = $data->getLimitations(); |
| 34 |
|
if (!empty($limitations)) { |
| 35 |
|
$generator->startObjectElement('limitations'); |
| 36 |
|
$generator->startList('limitations'); |
| 37 |
|
|
| 38 |
|
foreach ($limitations as $limitation) { |
| 39 |
|
$visitor->visitValueObject($limitation); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
$generator->endList('limitations'); |
| 43 |
|
$generator->endObjectElement('limitations'); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
$generator->endObjectElement('PolicyUpdate'); |
| 47 |
|
} |
eZ/Publish/Core/REST/Client/Output/ValueObjectVisitor/RestContentCreateStruct.php 1 location
|
@@ 73-82 (lines=10) @@
|
| 70 |
|
$generator->endAttribute('href'); |
| 71 |
|
$generator->endObjectElement('ContentType'); |
| 72 |
|
|
| 73 |
|
if (!empty($contentCreateStruct->fields)) { |
| 74 |
|
$generator->startHashElement('fields'); |
| 75 |
|
$generator->startList('field'); |
| 76 |
|
|
| 77 |
|
foreach ($contentCreateStruct->fields as $field) { |
| 78 |
|
$this->visitField($generator, $contentCreateStruct->contentType, $field); |
| 79 |
|
} |
| 80 |
|
$generator->endList('field'); |
| 81 |
|
$generator->endHashElement('fields'); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
$visitor->visitValueObject($restContentCreateStruct->locationCreateStruct); |
| 85 |
|
|
eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/Policy.php 1 location
|
@@ 61-71 (lines=11) @@
|
| 58 |
|
$generator->endValueElement('function'); |
| 59 |
|
|
| 60 |
|
$limitations = $data->getLimitations(); |
| 61 |
|
if (!empty($limitations)) { |
| 62 |
|
$generator->startHashElement('limitations'); |
| 63 |
|
$generator->startList('limitation'); |
| 64 |
|
|
| 65 |
|
foreach ($limitations as $limitation) { |
| 66 |
|
$this->visitLimitation($generator, $limitation); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
$generator->endList('limitation'); |
| 70 |
|
$generator->endHashElement('limitations'); |
| 71 |
|
} |
| 72 |
|
} |
| 73 |
|
} |
| 74 |
|
|