PHP Interface Cartalyst\Sentinel\Roles\RoleableInterface

Afficher le fichier Open project: cartalyst/sentinel

Méthodes publiques

Méthode Description
getRoles ( ) : IteratorAggregate Returns all the associated roles.
inRole ( mixed $role ) : boolean Checks if the user is in the given role.

Method Details

getRoles() public méthode

Returns all the associated roles.

inRole() public méthode

Checks if the user is in the given role.
public inRole ( mixed $role ) : boolean
$role mixed
Résultat boolean