PHP 클래스 Bolt\Storage\Repository\BaseLogRepository

상속: extends Bolt\Storage\Repository
파일 보기 프로젝트 열기: bolt/bolt

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
addWhereActivity ( Doctrine\DBAL\Query\QueryBuilder $qb, array $options ) Add required WHERE parameters.
buildWhereOr ( Doctrine\DBAL\Query\QueryBuilder $qb, string $parentColumnName, array $options ) : CompositeExpression Build an OR group that is added to the AND.
getCount ( array | false $result ) : integer | false Get a column count query result.

메소드 상세

addWhereActivity() 보호된 메소드

Add required WHERE parameters.
protected addWhereActivity ( Doctrine\DBAL\Query\QueryBuilder $qb, array $options )
$qb Doctrine\DBAL\Query\QueryBuilder
$options array

buildWhereOr() 보호된 메소드

Build an OR group that is added to the AND.
protected buildWhereOr ( Doctrine\DBAL\Query\QueryBuilder $qb, string $parentColumnName, array $options ) : CompositeExpression
$qb Doctrine\DBAL\Query\QueryBuilder
$parentColumnName string
$options array
리턴 Doctrine\DBAL\Query\Expression\CompositeExpression

clearLog() 공개 메소드

Clear the log table.
public clearLog ( ) : boolean
리턴 boolean

createQueryBuilder() 공개 메소드

Creates a query builder instance namespaced to this repository
public createQueryBuilder ( $alias = null ) : Doctrine\DBAL\Query\QueryBuilder
리턴 Doctrine\DBAL\Query\QueryBuilder

getActivity() 공개 메소드

Get content log's activity entries.
public getActivity ( integer $page = 1, integer $amount = 10, array $options = [] ) : Bolt\Storage\Entity\LogChange[]
$page integer
$amount integer
$options array
리턴 Bolt\Storage\Entity\LogChange[]

getActivityCount() 공개 메소드

Get the total amount of log entries, optionally limited to a given level and/or context.
public getActivityCount ( array $options = [] ) : integer | false
$options array
리턴 integer | false

getActivityCountQuery() 공개 메소드

Build the query for the entry count.
public getActivityCountQuery ( array $options ) : Doctrine\DBAL\Query\QueryBuilder
$options array
리턴 Doctrine\DBAL\Query\QueryBuilder

getActivityQuery() 공개 메소드

Build the query to get the log entries.
public getActivityQuery ( integer $page, integer $amount, array $options ) : Doctrine\DBAL\Query\QueryBuilder
$page integer
$amount integer
$options array
리턴 Doctrine\DBAL\Query\QueryBuilder

getCount() 보호된 메소드

Get a column count query result.
protected getCount ( array | false $result ) : integer | false
$result array | false
리턴 integer | false

queryTrimLog() 공개 메소드

Build the query for a log trim.
public queryTrimLog ( DateTime $period ) : Doctrine\DBAL\Query\QueryBuilder
$period DateTime
리턴 Doctrine\DBAL\Query\QueryBuilder

trimLog() 공개 메소드

Trim logs older that provided date.
public trimLog ( DateTime $period ) : boolean
$period DateTime
리턴 boolean