PHP 클래스 Bolt\Controller\Backend\Records

Prior to v3.0 this functionality primarily existed in the monolithic Bolt\Controllers\Backend class.
저자: Gawain Lynch ([email protected])
상속: extends BackendBase
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

공개 메소드들

메소드 설명
edit ( Request $request, string $contenttypeslug, integer $id ) : TemplateResponse | RedirectResponse Edit a record, or create a new one.
overview ( Request $request, string $contenttypeslug ) : TemplateResponse | RedirectResponse Content type overview page.
related ( Request $request, string $contenttypeslug, integer $id ) : TemplateResponse | RedirectResponse Get related records.

보호된 메소드들

메소드 설명
addRoutes ( Silex\ControllerCollection $c )
recordEdit ( ) : Edit
recordListing ( ) : Bolt\Storage\ContentRequest\Listing
recordSave ( ) : Save

비공개 메소드들

메소드 설명
checkEditAccess ( string $contenttypeslug, integer $id ) : boolean | RedirectResponse Check that the user is allowed to edit the record.
setEditReferrer ( Request $request ) : void Set the editreferrer in twig if it was not set yet.

메소드 상세

addRoutes() 보호된 메소드

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

edit() 공개 메소드

Edit a record, or create a new one.
public edit ( Request $request, string $contenttypeslug, integer $id ) : TemplateResponse | RedirectResponse
$request Symfony\Component\HttpFoundation\Request The Symfony Request
$contenttypeslug string The content type slug
$id integer The content ID
리턴 Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse

overview() 공개 메소드

Content type overview page.
public overview ( Request $request, string $contenttypeslug ) : TemplateResponse | RedirectResponse
$request Symfony\Component\HttpFoundation\Request The Symfony Request
$contenttypeslug string The content type slug
리턴 Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse

recordEdit() 보호된 메소드

protected recordEdit ( ) : Edit
리턴 Bolt\Storage\ContentRequest\Edit

recordListing() 보호된 메소드

protected recordListing ( ) : Bolt\Storage\ContentRequest\Listing
리턴 Bolt\Storage\ContentRequest\Listing

recordSave() 보호된 메소드

protected recordSave ( ) : Save
리턴 Bolt\Storage\ContentRequest\Save