PHP Class Bolt\Logger\Manager

Author: Gawain Lynch ([email protected])
Show file Open project: bolt/bolt Class Usage Examples

Public Methods

Method Description
__construct ( Silex\Application $app, Bolt\Storage\Repository\LogChangeRepository $changeRepository, Bolt\Storage\Repository\LogSystemRepository $systemRepository ) Constructor.
clear ( string $log ) Clear a log.
getActivity ( string $log, integer $page = 1, integer $amount = 10, array $options = [] ) : array Get a specific activity log.
getListingData ( array $contenttype, integer $contentId, array $queryOptions ) : array Get the listing data such as title and count.
trim ( string $log ) Trim the log.

Method Details

__construct() public method

Constructor.
public __construct ( Silex\Application $app, Bolt\Storage\Repository\LogChangeRepository $changeRepository, Bolt\Storage\Repository\LogSystemRepository $systemRepository )
$app Silex\Application
$changeRepository Bolt\Storage\Repository\LogChangeRepository
$systemRepository Bolt\Storage\Repository\LogSystemRepository

clear() public method

Clear a log.
public clear ( string $log )
$log string

getActivity() public method

Get a specific activity log.
public getActivity ( string $log, integer $page = 1, integer $amount = 10, array $options = [] ) : array
$log string The log to query. Either 'change' or 'system'
$page integer
$amount integer Number of results to return
$options array
return array

getListingData() public method

Get the listing data such as title and count.
public getListingData ( array $contenttype, integer $contentId, array $queryOptions ) : array
$contenttype array The ContentType
$contentId integer The content ID
$queryOptions array
return array

trim() public method

Trim the log.
public trim ( string $log )
$log string