Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Cartalyst
Sentinel
Roles
RoleableInterface
PHP Interface Cartalyst\Sentinel\Roles\RoleableInterface
Show file
Open project: cartalyst/sentinel
Public Methods
Method
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
method
Returns all the associated roles.
public
getRoles
( ) :
IteratorAggregate
return
IteratorAggregate
inRole()
public
method
Checks if the user is in the given role.
public
inRole
(
mixed
$role
) :
boolean
$role
mixed
return
boolean