PHP 클래스 Bolt\Controller\Async\Records

저자: Gawain Lynch ([email protected])
상속: extends Bolt\Controller\Async\AsyncBase
파일 보기 프로젝트 열기: bolt/bolt

공개 메소드들

메소드 설명
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