Property | Type | Description | |
---|---|---|---|
$controller | string | ||
$crud | instance of CRUD | ||
$data | query data | ||
$map | array | [ METHOD => [ 'module' => 'module', 'controller' => 'controller', 'acl' => 'privilege', ], ] | |
$method | HTTP Method | ||
$module | string | ||
$params | params of query | ||
$primary | identifier | ||
$relation | relation list | ||
$relationId | relation Id |
Method | Description | |
---|---|---|
__construct ( ) | Prepare request for processing | |
addMap ( string $method, string $module, string $controller, String $acl = null ) | Add mapping data | |
delete ( string $module, string $controller, String $acl = null ) | Add mapping for DELETE method | |
get ( string $module, string $controller, String $acl = null ) | Add mapping for GET method | |
getCrud ( ) : |
Get crud instance | |
getPrimaryKey ( ) : array | Return primary key | |
head ( string $module, string $controller, String $acl = null ) | Add mapping for HEAD method | |
options ( string $module, string $controller, String $acl = null ) | Add mapping for OPTIONS method | |
patch ( string $module, string $controller, String $acl = null ) | Add mapping for PATCH method | |
post ( string $module, string $controller, String $acl = null ) | Add mapping for POST method | |
put ( string $module, string $controller, String $acl = null ) | Add mapping for PUT method | |
run ( ) : mixed | Run REST controller | |
setCrud ( |
Set Crud |
public getCrud ( ) : |
||
return |
protected array $map | ||
return | array |