|
static | can ($userId, string $action, $itemId=null, $params=null) |
|
См. определение в файле accessiblecontroller.php строка 14
◆ __construct()
__construct |
( |
int | $userId | ) |
|
◆ batchCheck()
◆ can()
static can |
( |
| $userId, |
|
|
string | $action, |
|
|
| $itemId = null, |
|
|
| $params = null ) |
|
static |
◆ check()
◆ checkByItemId()
checkByItemId |
( |
string | $action, |
|
|
int | $itemId = null, |
|
|
| $params = null ) |
◆ getEntityFilter()
getEntityFilter |
( |
string | $action, |
|
|
string | $entityName, |
|
|
| $params = null ) |
Get filter for entity.
The filter contains conditions that allow the user to see only what is available to him according to the granted rights.
- Аргументы
-
string | $action | |
string | $entityName | recommended to use the name of the tablet class. |
mixed | $params | |
- Возвращает
- array|null is filter not available - return null.
Замещается в BaseAccessController.
◆ getUser()