Property | Type | Description | |
---|---|---|---|
$_defaultConfig | default config |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) | AbstractRule constructor. | |
allowed ( array $user, string $role, Cake\Network\Request $request ) : boolean | Check the current entity is owned by the logged in user |
Method | Description | |
---|---|---|
_getTable ( Cake\Network\Request $request, mixed $table = null ) : |
Get a table from the alias, table object or inspecting the request for a default table | |
_getTableFromRequest ( Cake\Network\Request $request ) : |
Inspect the request and try to retrieve a table based on the current controller |
public __construct ( array $config = [] ) | ||
$config | array | Rule config |
protected _getTableFromRequest ( Cake\Network\Request $request ) : |
||
$request | Cake\Network\Request | request |
return |