PHP Трейт AuthorityControllerHelpers

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$authority
$user
$userAttributes

Открытые методы

Метод Описание
assertCan ( $action, $resource, $resourceValue = null )
assertCannot ( $action, $resource, $resourceValue = null )
getProperty ( $object, $propertyName )
invokeMethod ( $object, $methodName, $values = [] )
setProperty ( $object, $propertyName, $value )

Защищенные методы

Метод Описание
getAuthority ( $user )
getUser ( Illuminate\Database\Eloquent\Collection $roles = null ) : UserInterface return an Authentificate User with role(s)
getUserWithRole ( string | array $rolesNames = null ) : UserInterface return an Authentificate User with role(s)

Описание методов

assertCan() публичный Метод

public assertCan ( $action, $resource, $resourceValue = null )

assertCannot() публичный Метод

public assertCannot ( $action, $resource, $resourceValue = null )

getAuthority() защищенный Метод

protected getAuthority ( $user )

getProperty() публичный Метод

public getProperty ( $object, $propertyName )

getUser() защищенный Метод

return an Authentificate User with role(s)
protected getUser ( Illuminate\Database\Eloquent\Collection $roles = null ) : UserInterface
$roles Illuminate\Database\Eloquent\Collection Roles to add to the user. Default to null
Результат UserInterface

getUserWithRole() защищенный Метод

return an Authentificate User with role(s)
protected getUserWithRole ( string | array $rolesNames = null ) : UserInterface
$rolesNames string | array Role(s) to add to the user
Результат UserInterface

invokeMethod() публичный Метод

public invokeMethod ( $object, $methodName, $values = [] )

setProperty() публичный Метод

public setProperty ( $object, $propertyName, $value )

Описание свойств

$authority защищенное свойство

protected $authority

$user защищенное свойство

protected $user

$userAttributes защищенное свойство

protected $userAttributes