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

Mostra file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
createCreateStructFromRole ( eZ\Publish\SPI\Persistence\User\Role $role ) : eZ\Publish\SPI\Persistence\User\RoleCreateStruct Creates a create struct from an existing $role.
createRoleFromCreateStruct ( eZ\Publish\SPI\Persistence\User\RoleCreateStruct $createStruct ) : eZ\Publish\SPI\Persistence\User\Role Maps properties from $struct to $role.
mapPolicies ( array $data ) : eZ\Publish\SPI\Persistence\User\Policy Map policy data to an array of policies.
mapRole ( array $data ) : eZ\Publish\SPI\Persistence\User\Role Map role data to a role.
mapRoleAssignments ( array $data ) : eZ\Publish\SPI\Persistence\User\RoleAssignment[] Map data for a set of role assignments.
mapRoles ( array $data ) : eZ\Publish\SPI\Persistence\User\Role[] Map data for a set of roles.
mapUser ( array $data ) : eZ\Publish\SPI\Persistence\User Map user data into user object.
mapUsers ( array $data ) : eZ\Publish\SPI\Persistence\User[] Map data for a set of user data.

Method Details

createCreateStructFromRole() public method

Creates a create struct from an existing $role.
public createCreateStructFromRole ( eZ\Publish\SPI\Persistence\User\Role $role ) : eZ\Publish\SPI\Persistence\User\RoleCreateStruct
$role eZ\Publish\SPI\Persistence\User\Role
return eZ\Publish\SPI\Persistence\User\RoleCreateStruct

createRoleFromCreateStruct() public method

Maps properties from $struct to $role.
public createRoleFromCreateStruct ( eZ\Publish\SPI\Persistence\User\RoleCreateStruct $createStruct ) : eZ\Publish\SPI\Persistence\User\Role
$createStruct eZ\Publish\SPI\Persistence\User\RoleCreateStruct
return eZ\Publish\SPI\Persistence\User\Role

mapPolicies() public method

Map policy data to an array of policies.
public mapPolicies ( array $data ) : eZ\Publish\SPI\Persistence\User\Policy
$data array
return eZ\Publish\SPI\Persistence\User\Policy

mapRole() public method

Map role data to a role.
public mapRole ( array $data ) : eZ\Publish\SPI\Persistence\User\Role
$data array
return eZ\Publish\SPI\Persistence\User\Role

mapRoleAssignments() public method

Map data for a set of role assignments.
public mapRoleAssignments ( array $data ) : eZ\Publish\SPI\Persistence\User\RoleAssignment[]
$data array
return eZ\Publish\SPI\Persistence\User\RoleAssignment[]

mapRoles() public method

Map data for a set of roles.
public mapRoles ( array $data ) : eZ\Publish\SPI\Persistence\User\Role[]
$data array
return eZ\Publish\SPI\Persistence\User\Role[]

mapUser() public method

Map user data into user object.
public mapUser ( array $data ) : eZ\Publish\SPI\Persistence\User
$data array
return eZ\Publish\SPI\Persistence\User

mapUsers() public method

Map data for a set of user data.
public mapUsers ( array $data ) : eZ\Publish\SPI\Persistence\User[]
$data array
return eZ\Publish\SPI\Persistence\User[]