ReportRepository
Read onlyYes
Table of Contents
Constants
- TABLE_NAME = 'sys_http_report'
- TYPE = 'csp-report'
Properties
Methods
- __construct() : mixed
- add() : bool
- findAll() : array<int, Report>
- findAllSummarized() : array<int, SummarizedReport>
- findBySummary() : array<int, Report>
- findByUuid() : Report|null
- remove() : bool
- removeAll() : int
- updateStatus() : int
- applyDemand() : void
- applyDemandConditions() : void
- applyDemandSorting() : void
- applyStaticTypeCondition() : void
- applySummaryJoin() : void
- createFunctionLiteral() : string
- fetchSummaryCountMap() : array<string, int>
- getConnection() : Connection
- getQueryBuilder() : QueryBuilder
- prepareAliasPrefix() : string
- prepareQueryBuilder() : QueryBuilder
Constants
TABLE_NAME
protected
mixed
TABLE_NAME
= 'sys_http_report'
TYPE
protected
mixed
TYPE
= 'csp-report'
Properties
$pool
protected
ConnectionPool
$pool
Methods
__construct()
public
__construct(ConnectionPool $pool) : mixed
Parameters
- $pool : ConnectionPool
add()
public
add(Report $report) : bool
Parameters
- $report : Report
Return values
boolfindAll()
public
findAll([ReportDemand|null $demand = null ]) : array<int, Report>
Parameters
- $demand : ReportDemand|null = null
Return values
array<int, Report>findAllSummarized()
public
findAllSummarized([ReportDemand|null $demand = null ]) : array<int, SummarizedReport>
Parameters
- $demand : ReportDemand|null = null
Return values
array<int, SummarizedReport>findBySummary()
public
findBySummary(string ...$summaries) : array<int, Report>
Parameters
- $summaries : string
Return values
array<int, Report>findByUuid()
public
findByUuid(UuidV4 $uuid) : Report|null
Parameters
- $uuid : UuidV4
Return values
Report|nullremove()
public
remove(UuidV4 $uuid) : bool
Parameters
- $uuid : UuidV4
Return values
boolremoveAll()
public
removeAll([Scope|null $scope = null ]) : int
Parameters
- $scope : Scope|null = null
Return values
intupdateStatus()
public
updateStatus(ReportStatus $status, UuidV4 ...$uuids) : int
Parameters
- $status : ReportStatus
- $uuids : UuidV4
Return values
intapplyDemand()
protected
applyDemand(ReportDemand $demand, QueryBuilder $queryBuilder[, string|null $alias = null ]) : void
Parameters
- $demand : ReportDemand
- $queryBuilder : QueryBuilder
- $alias : string|null = null
applyDemandConditions()
protected
applyDemandConditions(ReportDemand $demand, QueryBuilder $queryBuilder[, string|null $alias = null ]) : void
Parameters
- $demand : ReportDemand
- $queryBuilder : QueryBuilder
- $alias : string|null = null
applyDemandSorting()
protected
applyDemandSorting(ReportDemand $demand, QueryBuilder $queryBuilder[, string|null $alias = null ]) : void
Parameters
- $demand : ReportDemand
- $queryBuilder : QueryBuilder
- $alias : string|null = null
applyStaticTypeCondition()
protected
applyStaticTypeCondition(QueryBuilder $queryBuilder[, string|null $alias = null ]) : void
Parameters
- $queryBuilder : QueryBuilder
- $alias : string|null = null
applySummaryJoin()
protected
applySummaryJoin(QueryBuilder $queryBuilder, string $fromAlias, string $join, string $alias, string $condition) : void
Parameters
- $queryBuilder : QueryBuilder
- $fromAlias : string
- $join : string
- $alias : string
- $condition : string
createFunctionLiteral()
protected
createFunctionLiteral(QueryBuilder $queryBuilder, string $functionName, string $fieldName[, string|null $alias = null ]) : string
Parameters
- $queryBuilder : QueryBuilder
- $functionName : string
- $fieldName : string
- $alias : string|null = null
Return values
stringfetchSummaryCountMap()
protected
fetchSummaryCountMap() : array<string, int>
Return values
array<string, int>getConnection()
protected
getConnection() : Connection
Return values
ConnectiongetQueryBuilder()
protected
getQueryBuilder() : QueryBuilder
Return values
QueryBuilderprepareAliasPrefix()
protected
prepareAliasPrefix([string|null $alias = null ]) : string
Parameters
- $alias : string|null = null
Return values
stringprepareQueryBuilder()
protected
prepareQueryBuilder(ReportDemand $demand[, string|null $alias = null ]) : QueryBuilder
Parameters
- $demand : ReportDemand
- $alias : string|null = null