ReportRepository
Table of Contents
Constants
-
TABLE_NAME
= 'sys_http_report'
-
TYPE
= 'csp-report'
Properties
-
$pool
: ConnectionPool
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
TABLE_NAME
protected
mixed
TABLE_NAME
= 'sys_http_report'
TYPE
protected
mixed
TYPE
= 'csp-report'
__construct()
public
__construct(ConnectionPool $pool) : mixed
Parameters
-
$pool
: ConnectionPool
-
add()
public
add(Report $report) : bool
Parameters
-
$report
: Report
-
findAll()
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
-
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
-
remove()
public
remove(UuidV4 $uuid) : bool
Parameters
-
$uuid
: UuidV4
-
removeAll()
public
removeAll([Scope|null $scope = null ]) : int
Parameters
-
$scope
: Scope|null
= null
-
updateStatus()
public
updateStatus(ReportStatus $status, UuidV4 ...$uuids) : int
Parameters
-
$status
: ReportStatus
-
-
$uuids
: UuidV4
-
applyDemand()
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
-
fetchSummaryCountMap()
protected
fetchSummaryCountMap() : array<string, int>
Return values
array<string, int>
getConnection()
protected
getConnection() : Connection
getQueryBuilder()
protected
getQueryBuilder() : QueryBuilder
prepareAliasPrefix()
protected
prepareAliasPrefix([string|null $alias = null ]) : string
Parameters
-
$alias
: string|null
= null
-
prepareQueryBuilder()
protected
prepareQueryBuilder(ReportDemand $demand[, string|null $alias = null ]) : QueryBuilder
Parameters
-
$demand
: ReportDemand
-
-
$alias
: string|null
= null
-