PHP Class Bolt\Controller\Backend\Records

Prior to v3.0 this functionality primarily existed in the monolithic Bolt\Controllers\Backend class.
Author: Gawain Lynch ([email protected])
Inheritance: extends BackendBase
Afficher le fichier Open project: bolt/bolt Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
addRoutes ( Silex\ControllerCollection $c )
recordEdit ( ) : Edit
recordListing ( ) : Bolt\Storage\ContentRequest\Listing
recordSave ( ) : Save

Private Methods

Méthode Description
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.

Method Details

addRoutes() protected méthode

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

edit() public méthode

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
Résultat Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse

overview() public méthode

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
Résultat Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse

recordEdit() protected méthode

protected recordEdit ( ) : Edit
Résultat Bolt\Storage\ContentRequest\Edit

recordListing() protected méthode

protected recordListing ( ) : Bolt\Storage\ContentRequest\Listing
Résultat Bolt\Storage\ContentRequest\Listing

recordSave() protected méthode

protected recordSave ( ) : Save
Résultat Bolt\Storage\ContentRequest\Save