PHP Класс Bluz\Controller\Mapper\AbstractMapper

Автор: Anton Shevchuk
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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

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

Метод Описание
__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 ( ) : AbstractCrud 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 ( AbstractCrud $crud ) Set Crud

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

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

Prepare request for processing
public __construct ( )

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

Add mapping data
public addMap ( string $method, string $module, string $controller, String $acl = null )
$method string
$module string
$controller string
$acl String

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

Add mapping for DELETE method
public delete ( string $module, string $controller, String $acl = null )
$module string
$controller string
$acl String

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

Add mapping for GET method
public get ( string $module, string $controller, String $acl = null )
$module string
$controller string
$acl String

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

Get crud instance
public getCrud ( ) : AbstractCrud
Результат Bluz\Crud\AbstractCrud

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

Return primary key
public getPrimaryKey ( ) : array
Результат array

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

Add mapping for HEAD method
public head ( string $module, string $controller, String $acl = null )
$module string
$controller string
$acl String

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

Add mapping for OPTIONS method
public options ( string $module, string $controller, String $acl = null )
$module string
$controller string
$acl String

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

Add mapping for PATCH method
public patch ( string $module, string $controller, String $acl = null )
$module string
$controller string
$acl String

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

Add mapping for POST method
public post ( string $module, string $controller, String $acl = null )
$module string
$controller string
$acl String

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

Add mapping for PUT method
public put ( string $module, string $controller, String $acl = null )
$module string
$controller string
$acl String

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

Run REST controller
public run ( ) : mixed
Результат mixed

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

Set Crud
public setCrud ( AbstractCrud $crud )
$crud Bluz\Crud\AbstractCrud

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

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

protected string $controller
Результат string

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

instance of CRUD
protected $crud

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

query data
protected $data

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

[ METHOD => [ 'module' => 'module', 'controller' => 'controller', 'acl' => 'privilege', ], ]
protected array $map
Результат array

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

HTTP Method
protected $method

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

protected string $module
Результат string

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

params of query
protected $params

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

identifier
protected $primary

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

relation list
protected $relation

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

relation Id
protected $relationId