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
Pagekit
User
Model
AccessModelTrait
hasRole
Pagekit\User\Model\AccessModelTrait::hasRole PHP Method
AccessModelTrait Trait Documentation
Show file
Open project: pagekit/pagekit
hasRole()
public
method
public
hasRole
(
integer
$role
) :
boolean
$role
integer
return
boolean
public function hasRole($role) { return in_array($role, $this->roles); }
AccessModelTrait
hasAccess
hasRole
removeRole