Bluz\Controller\Mapper\Rest
Rest
- Author: Anton Shevchuk
Synopsis
- // Inherited members from AbstractMapper
- protected string $method;
- protected $module;
- protected $controller;
- protected $primary;
- protected $relation;
- protected $relationId;
- protected array $params;
- protected array $data;
- protected AbstractCrud $crud;
- protected array $map;
- // methods
- protected void prepareRequest()
- protected array prepareParams()
- // Inherited methods from AbstractMapper
- protected abstract array prepareParams()
- public void __construct()
- public Link addMap()
- public void addParam()
- public Link head()
- public Link get()
- public Link post()
- public Link patch()
- public Link put()
- public Link delete()
- public Link options()
- public Controller run()
- protected void prepareRequest()
- protected mixed dispatch()
Hierarchy
Members
protected
- $controller — string
- $crud — Bluz\Crud\AbstractCrud
- $data — array
- $map
—
array
[ METHOD => Link { 'module' => 'module', 'controller' => 'controller', 'acl' => 'privilege', 'fields' => ['id', ... ] }, ] - $method — string
- $module — string
- $params — array
- $primary — array
- $relation — string
- $relationId — string
Methods
protected
Inherited from Bluz\Controller\Mapper\AbstractMapper
protected
- dispatch() — Dispatch REST or CRUD controller
- prepareParams() — Prepare params
- prepareRequest() — Prepare request for processing
public
- addMap() — Add mapping data
- addParam() — Add param to data, for example - setup foreign keys on fly
- delete() — Add mapping for DELETE method
- get() — Add mapping for GET method
- head() — Add mapping for HEAD method
- options() — Add mapping for OPTIONS method
- patch() — Add mapping for PATCH method
- post() — Add mapping for POST method
- put() — Add mapping for PUT method
- run() — Run
History
-
2017-09-25T16:58:36+00:00 (commit #3d66e13)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed complex primary key
-
2017-08-03T09:45:41+00:00 (commit #289cd08)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `Mapper\Link` class
-
2017-07-19T15:35:32+00:00 (commit #b3bd57f)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated AbstractMapper
-
2017-07-19T15:33:23+00:00 (commit #2a51418)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Refactoring of Controller mappers Changed signature of constructor
-
2017-06-30T08:36:40+00:00 (commit #2259ecf)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed comments style
-
2017-04-21T15:14:44+00:00 (commit #c7538da)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Replace `sizeof` to `count`
-
2017-04-21T13:24:35+00:00 (commit #3b25a3d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small update for codestyle
-
2017-02-15T16:09:44+00:00 (commit #0fc0c8b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated coveralls config
-
2017-02-13T10:14:18+00:00 (commit #43dbf55)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Rollback to `getCount()` method
-
2017-01-30T13:15:49+00:00 (commit #fd5d943)
Author: Anton (AntonShevchuk@gmail.com) / Commiter: GitHub (AntonShevchuk@gmail.com)
Merge pull request #395 from AntonShevchuk/master Added `AttachmentResponse`
-
2017-01-30T12:38:53+00:00 (commit #0ab8691)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `AttachmentResponse` Added `attachment($file)` helper for `Controller`