Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Client/Input/Parser/RoleAssignmentList.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Client\Input\Parser;
8
9 use eZ\Publish\Core\REST\Common\Input\BaseParser;
10 use eZ\Publish\Core\REST\Common\Input\ParsingDispatcher;
11
15 class RoleAssignmentList extends BaseParser
16 {
27 public function parse(array $data, ParsingDispatcher $parsingDispatcher)
28 {
29 $roleAssignments = array();
30 foreach ($data['RoleAssignment'] as $rawRoleAssignmentData) {
31 $roleAssignments[] = $parsingDispatcher->parse(
32 $rawRoleAssignmentData,
33 $rawRoleAssignmentData['_media-type']
34 );
35 }
36
37 return $roleAssignments;
38 }
39 }
eZ\Publish\Core\REST\Client\Input\Parser\RoleAssignmentList
Parser for RoleAssignmentList.
Definition: Client/Input/Parser/RoleAssignmentList.php:16
eZ\Publish\Core\REST\Client\Input\Parser\RoleAssignmentList\parse
parse(array $data, ParsingDispatcher $parsingDispatcher)
Parse input structure.
Definition: Client/Input/Parser/RoleAssignmentList.php:27
eZ\Publish\Core\REST\Common\Input\BaseParser
Definition: BaseParser.php:12
eZ\Publish\Core\REST\Common\Input\ParsingDispatcher
Parsing dispatcher.
Definition: ParsingDispatcher.php:15
eZ\Publish\Core\REST\Common\Input\ParsingDispatcher\parse
parse(array $data, $mediaType)
Parses the given $data according to $mediaType.
Definition: ParsingDispatcher.php:66
eZ\Publish\Core\REST\Client\Input\Parser
Definition: Publish/Core/REST/Client/Input/Parser/Content.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.