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
Show file Open project: bolt/bolt

Public Methods

Method 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

Protected Methods

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

Private Methods

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

Method Details

addRoutes() protected method

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

changeLogRepository() protected method

protected changeLogRepository ( ) : Bolt\Storage\Repository\LogChangeRepository
return Bolt\Storage\Repository\LogChangeRepository

changeOverview() public method

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

changeRecord() public method

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
return Bolt\Response\TemplateResponse

changeRecordListing() public method

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
return Bolt\Response\TemplateResponse

manager() protected method

protected manager ( ) : Manager
return Bolt\Logger\Manager

systemLogRepository() protected method

protected systemLogRepository ( ) : Bolt\Storage\Repository\LogSystemRepository
return Bolt\Storage\Repository\LogSystemRepository

systemOverview() public method

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