PHP Interface Sulu\Component\Security\Authorization\AccessControl\AccessControlRepositoryInterface

Exibir arquivo Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
findByTypeAndId ( string $type, integer $id ) : Sulu\Component\Security\Authorization\AccessControl\AccessControlInterface[] Finds all AccessControls for the given entity type and id.
findByTypeAndIdAndRole ( string $type, integer $id, integer $roleId ) : Sulu\Component\Security\Authorization\AccessControl\AccessControlInterface Find AccessControl by its entities type and id and the role id.

Method Details

findByTypeAndId() public method

Finds all AccessControls for the given entity type and id.
public findByTypeAndId ( string $type, integer $id ) : Sulu\Component\Security\Authorization\AccessControl\AccessControlInterface[]
$type string The type of the AccessControl
$id integer The id of the AccessControl
return Sulu\Component\Security\Authorization\AccessControl\AccessControlInterface[]

findByTypeAndIdAndRole() public method

Find AccessControl by its entities type and id and the role id.
public findByTypeAndIdAndRole ( string $type, integer $id, integer $roleId ) : Sulu\Component\Security\Authorization\AccessControl\AccessControlInterface
$type string The type of the AccessControl
$id integer The id of the AccessControl
$roleId integer The role id of the AccessControl
return Sulu\Component\Security\Authorization\AccessControl\AccessControlInterface