PHP Class app\components\User

User: Dima Date: 13.05.2015 Time: 11:18
Inheritance: extends yii\web\User
ファイルを表示 Open project: phundament/app Class Usage Examples

Public Properties

Property Type Description
$rootUsers Users with all permissions

Public Methods

Method Description
can ( string $permissionName, array $params = [], boolean | true $allowCaching = true ) : boolean Extended permission check with Guest role and route.

Private Methods

Method Description
canGuest ( $permissionName, $params, $allowCaching ) : boolean Checks permissions from guest role, when no user is logged in.
checkAccessRoute ( $permissionName, $params, $allowCaching ) : boolean Checks route permissions.

Method Details

can() public method

Extended permission check with Guest role and route.
public can ( string $permissionName, array $params = [], boolean | true $allowCaching = true ) : boolean
$permissionName string
$params array
$allowCaching boolean | true
return boolean

Property Details

$rootUsers public_oe property

Users with all permissions
public $rootUsers