PHP Interface Sulu\Component\Security\Authentication\RoleRepositoryInterface

Inheritance: extends Sulu\Component\Persistence\Repository\RepositoryInterface
ファイルを表示 Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
findAllRoles ( ) : array Searches for all roles.
findRoleById ( integer $id ) : Sulu\Component\Security\Authentication\RoleInterface Finds a role with a specific id.
getRoleNames ( ) : array Return an array containing the names of all the roles.

Method Details

findAllRoles() public method

Searches for all roles.
public findAllRoles ( ) : array
return array

findRoleById() public method

Finds a role with a specific id.
public findRoleById ( integer $id ) : Sulu\Component\Security\Authentication\RoleInterface
$id integer id of the role
return Sulu\Component\Security\Authentication\RoleInterface

getRoleNames() public method

Return an array containing the names of all the roles.
public getRoleNames ( ) : array
return array