Class

eZ\Publish\Core\Persistence\Legacy\User\Mapper

class Mapper

mapper for User related objects.

Methods

User mapUser(array $data)

Map user data into user object.

User[] mapUsers(array $data)

Map data for a set of user data.

Policy mapPolicies(array $data)

Map policy data to an array of policies.

Role mapRole(array $data)

Map role data to a role.

Role[] mapRoles(array $data)

Map data for a set of roles.

RoleAssignment[] mapRoleAssignments(array $data)

Map data for a set of role assignments.

RoleCreateStruct createCreateStructFromRole(Role $role)

Creates a create struct from an existing $role.

Role createRoleFromCreateStruct(RoleCreateStruct $createStruct)

Maps properties from $struct to $role.

Details

at line 29
public User mapUser(array $data)

Map user data into user object.

Parameters

array $data

Return Value

User

at line 50
public User[] mapUsers(array $data)

Map data for a set of user data.

Parameters

array $data

Return Value

User[]

at line 67
public Policy mapPolicies(array $data)

Map policy data to an array of policies.

Parameters

array $data

Return Value

Policy

at line 118
public Role mapRole(array $data)

Map role data to a role.

Parameters

array $data

Return Value

Role

at line 144
public Role[] mapRoles(array $data)

Map data for a set of roles.

Parameters

array $data

Return Value

Role[]

at line 166
public RoleAssignment[] mapRoleAssignments(array $data)

Map data for a set of role assignments.

Parameters

array $data

Return Value

RoleAssignment[]

at line 219
public RoleCreateStruct createCreateStructFromRole(Role $role)

Creates a create struct from an existing $role.

Parameters

Role $role

Return Value

RoleCreateStruct

at line 236
public Role createRoleFromCreateStruct(RoleCreateStruct $createStruct)

Maps properties from $struct to $role.

Parameters

RoleCreateStruct $createStruct

Return Value

Role