PHP Class Bolt\Controller\Backend\Log

Prior to v2.3 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

Méthodes publiques

Méthode Description
changeOverview ( Request $request ) : TemplateResponse | RedirectResponse Change log overview route.
changeRecord ( Request $request, string $contenttype, integer $contentid, integer $id ) : TemplateResponse Show a single change log entry.
changeRecordListing ( Request $request, string $contenttype, integer $contentid ) : TemplateResponse Show a list of changelog entries.
systemOverview ( Request $request ) : TemplateResponse | RedirectResponse System log overview route

Méthodes protégées

Méthode Description
addRoutes ( Silex\ControllerCollection $c )
changeLogRepository ( ) : Bolt\Storage\Repository\LogChangeRepository
manager ( ) : Manager
systemLogRepository ( ) : Bolt\Storage\Repository\LogSystemRepository

Private Methods

Méthode Description
getPagination ( integer | string | null $page ) : array Calculate pagination parameters.
getQueryOptions ( array $pagination ) : array Calculate the query options.

Method Details

addRoutes() protected méthode

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

changeLogRepository() protected méthode

protected changeLogRepository ( ) : Bolt\Storage\Repository\LogChangeRepository
Résultat Bolt\Storage\Repository\LogChangeRepository

changeOverview() public méthode

Change log overview route.
public changeOverview ( Request $request ) : TemplateResponse | RedirectResponse
$request Symfony\Component\HttpFoundation\Request
Résultat Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse

changeRecord() public méthode

Show a single change log entry.
public changeRecord ( Request $request, string $contenttype, integer $contentid, integer $id ) : TemplateResponse
$request Symfony\Component\HttpFoundation\Request
$contenttype string ContentType slug
$contentid integer Content record ID
$id integer The change log entry ID
Résultat Bolt\Response\TemplateResponse

changeRecordListing() public méthode

Show a list of changelog entries.
public changeRecordListing ( Request $request, string $contenttype, integer $contentid ) : TemplateResponse
$request Symfony\Component\HttpFoundation\Request
$contenttype string ContentType slug
$contentid integer Content record ID
Résultat Bolt\Response\TemplateResponse

manager() protected méthode

protected manager ( ) : Manager
Résultat Bolt\Logger\Manager

systemLogRepository() protected méthode

protected systemLogRepository ( ) : Bolt\Storage\Repository\LogSystemRepository
Résultat Bolt\Storage\Repository\LogSystemRepository

systemOverview() public méthode

System log overview route
public systemOverview ( Request $request ) : TemplateResponse | RedirectResponse
$request Symfony\Component\HttpFoundation\Request
Résultat Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse