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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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