PHP Класс Bolt\Controller\Async\Records

Автор: Gawain Lynch ([email protected])
Наследование: extends Bolt\Controller\Async\AsyncBase
Показать файл Открыть проект

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

Метод Описание
action ( Request $request ) : Response Perform an action on a Contenttype record.

Защищенные методы

Метод Описание
addRoutes ( Silex\ControllerCollection $c )

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

action() публичный метод

The action part of the POST request should take the form: [ contenttype => [ id => [ action => [field => value] ] ] ] For example: [ 'pages' => [ 3 => ['modify' => ['status' => 'held']], 5 => null, 4 => ['modify' => ['status' => 'draft']], 1 => ['delete' => null], 2 => ['modify' => ['status' => 'published']], ], 'entries' => [ 4 => ['modify' => ['status' => 'published']], 1 => null, 5 => ['delete' => null], 2 => null, 3 => ['modify' => ['title' => 'Drop Bear Attacks']], ] ]
public action ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request Symfony Request
Результат Symfony\Component\HttpFoundation\Response

addRoutes() защищенный метод

protected addRoutes ( Silex\ControllerCollection $c )
$c Silex\ControllerCollection