eZ/Publish/Core/REST/Client/ContentTypeService.php 1 location
|
@@ 163-174 (lines=12) @@
|
| 160 |
|
/** |
| 161 |
|
* {@inheritdoc} |
| 162 |
|
*/ |
| 163 |
|
public function loadContentTypeGroups(array $prioritizedLanguages = []) |
| 164 |
|
{ |
| 165 |
|
$response = $this->client->request( |
| 166 |
|
'GET', |
| 167 |
|
$this->requestParser->generate('typegroups'), |
| 168 |
|
new Message( |
| 169 |
|
array('Accept' => $this->outputVisitor->getMediaType('ContentTypeGroupList')) |
| 170 |
|
) |
| 171 |
|
); |
| 172 |
|
|
| 173 |
|
return $this->inputDispatcher->parse($response); |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
/** |
| 177 |
|
* Update a Content Type Group object. |
eZ/Publish/Core/REST/Client/ObjectStateService.php 1 location
|
@@ 123-134 (lines=12) @@
|
| 120 |
|
/** |
| 121 |
|
* {@inheritdoc} |
| 122 |
|
*/ |
| 123 |
|
public function loadObjectStateGroups($offset = 0, $limit = -1, array $prioritizedLanguages = []) |
| 124 |
|
{ |
| 125 |
|
$response = $this->client->request( |
| 126 |
|
'GET', |
| 127 |
|
$this->requestParser->generate('objectstategroups'), |
| 128 |
|
new Message( |
| 129 |
|
array('Accept' => $this->outputVisitor->getMediaType('ObjectStateGroupList')) |
| 130 |
|
) |
| 131 |
|
); |
| 132 |
|
|
| 133 |
|
return $this->inputDispatcher->parse($response); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
/** |
| 137 |
|
* {@inheritdoc} |
eZ/Publish/Core/REST/Client/RoleService.php 1 location
|
@@ 561-572 (lines=12) @@
|
| 558 |
|
* |
| 559 |
|
* @return \eZ\Publish\API\Repository\Values\User\Role[] |
| 560 |
|
*/ |
| 561 |
|
public function loadRoles() |
| 562 |
|
{ |
| 563 |
|
$response = $this->client->request( |
| 564 |
|
'GET', |
| 565 |
|
$this->requestParser->generate('roles'), |
| 566 |
|
new Message( |
| 567 |
|
array('Accept' => $this->outputVisitor->getMediaType('RoleList')) |
| 568 |
|
) |
| 569 |
|
); |
| 570 |
|
|
| 571 |
|
return $this->inputDispatcher->parse($response); |
| 572 |
|
} |
| 573 |
|
|
| 574 |
|
/** |
| 575 |
|
* Deletes the given role. |
eZ/Publish/Core/REST/Client/SectionService.php 1 location
|
@@ 173-184 (lines=12) @@
|
| 170 |
|
* |
| 171 |
|
* @return array of {@link \eZ\Publish\API\Repository\Values\Content\Section} |
| 172 |
|
*/ |
| 173 |
|
public function loadSections() |
| 174 |
|
{ |
| 175 |
|
$response = $this->client->request( |
| 176 |
|
'GET', |
| 177 |
|
$this->requestParser->generate('sections'), |
| 178 |
|
new Message( |
| 179 |
|
array('Accept' => $this->outputVisitor->getMediaType('SectionList')) |
| 180 |
|
) |
| 181 |
|
); |
| 182 |
|
|
| 183 |
|
return $this->inputDispatcher->parse($response); |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
/** |
| 187 |
|
* Loads a Section from its identifier ($sectionIdentifier). |