Méthode | Description | |
---|---|---|
clearLog ( ) : boolean | Clear the log table. | |
createQueryBuilder ( $alias = null ) : Doctrine\DBAL\Query\QueryBuilder | Creates a query builder instance namespaced to this repository | |
getActivity ( integer $page = 1, integer $amount = 10, array $options = [] ) : Bolt\Storage\Entity\LogChange[] | Get content log's activity entries. | |
getActivityCount ( array $options = [] ) : integer | false | Get the total amount of log entries, optionally limited to a given level and/or context. | |
getActivityCountQuery ( array $options ) : Doctrine\DBAL\Query\QueryBuilder | Build the query for the entry count. | |
getActivityQuery ( integer $page, integer $amount, array $options ) : Doctrine\DBAL\Query\QueryBuilder | Build the query to get the log entries. | |
queryTrimLog ( DateTime $period ) : Doctrine\DBAL\Query\QueryBuilder | Build the query for a log trim. | |
trimLog ( DateTime $period ) : boolean | Trim logs older that provided date. |
Méthode | Description | |
---|---|---|
addWhereActivity ( Doctrine\DBAL\Query\QueryBuilder $qb, array $options ) | Add required WHERE parameters. | |
buildWhereOr ( Doctrine\DBAL\Query\QueryBuilder $qb, string $parentColumnName, array $options ) : |
Build an OR group that is added to the AND. | |
getCount ( array | false $result ) : integer | false | Get a column count query result. |
protected addWhereActivity ( Doctrine\DBAL\Query\QueryBuilder $qb, array $options ) | ||
$qb | Doctrine\DBAL\Query\QueryBuilder | |
$options | array |
protected buildWhereOr ( Doctrine\DBAL\Query\QueryBuilder $qb, string $parentColumnName, array $options ) : |
||
$qb | Doctrine\DBAL\Query\QueryBuilder | |
$parentColumnName | string | |
$options | array | |
Résultat |
public createQueryBuilder ( $alias = null ) : Doctrine\DBAL\Query\QueryBuilder | ||
Résultat | Doctrine\DBAL\Query\QueryBuilder |
public getActivityCount ( array $options = [] ) : integer | false | ||
$options | array | |
Résultat | integer | false |
public getActivityCountQuery ( array $options ) : Doctrine\DBAL\Query\QueryBuilder | ||
$options | array | |
Résultat | Doctrine\DBAL\Query\QueryBuilder |
public queryTrimLog ( DateTime $period ) : Doctrine\DBAL\Query\QueryBuilder | ||
$period | DateTime | |
Résultat | Doctrine\DBAL\Query\QueryBuilder |