PHP Class Bolt\Controller\Async\Records

Author: Gawain Lynch ([email protected])
Inheritance: extends Bolt\Controller\Async\AsyncBase
Datei anzeigen Open project: bolt/bolt

Public Methods

Method Description
action ( Request $request ) : Response Perform an action on a Contenttype record.

Protected Methods

Method Description
addRoutes ( Silex\ControllerCollection $c )

Method Details

action() public method

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
return Symfony\Component\HttpFoundation\Response

addRoutes() protected method

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