WebhookRepository
Accessing webhook records from the database
This class is not part of TYPO3's Core API.
Table of Contents
Properties
- $applyDefaultRestrictions : bool
- $cacheIdentifierPrefix : string
- $connectionPool : ConnectionPool
- $runtimeCache : FrontendInterface
Methods
- __construct() : mixed
- countAll() : int
- findAll() : array<string|int, WebhookInstruction>
- findByDemand() : array<string|int, WebhookInstruction>
- getConfiguredWebhooksByType() : array<string, WebhookInstruction>
- getWebhookRecords() : array<string|int, mixed>
- setApplyDefaultRestrictions() : self
- getConfiguredWebhooks() : array<string, WebhookInstruction>
- getQueryBuilder() : QueryBuilder
- getQueryBuilderForDemand() : QueryBuilder
- map() : array<string|int, mixed>
- mapSingleRow() : WebhookInstruction
Properties
$applyDefaultRestrictions
protected
bool
$applyDefaultRestrictions
= false
$cacheIdentifierPrefix
protected
string
$cacheIdentifierPrefix
= 'webhooks_'
$connectionPool read-only
protected
ConnectionPool
$connectionPool
$runtimeCache read-only
protected
FrontendInterface
$runtimeCache
Attributes
- #[Autowire]
- $service: 'cache.runtime'
Methods
__construct()
public
__construct(ConnectionPool $connectionPool, FrontendInterface $runtimeCache) : mixed
Parameters
- $connectionPool : ConnectionPool
- $runtimeCache : FrontendInterface
countAll()
public
countAll() : int
Return values
intfindAll()
public
findAll() : array<string|int, WebhookInstruction>
Return values
array<string|int, WebhookInstruction>findByDemand()
public
findByDemand(WebhookDemand $demand) : array<string|int, WebhookInstruction>
Parameters
- $demand : WebhookDemand
Return values
array<string|int, WebhookInstruction>getConfiguredWebhooksByType()
public
getConfiguredWebhooksByType(string $type) : array<string, WebhookInstruction>
Parameters
- $type : string
Return values
array<string, WebhookInstruction>getWebhookRecords()
public
getWebhookRecords([WebhookDemand|null $demand = null ]) : array<string|int, mixed>
Parameters
- $demand : WebhookDemand|null = null
Return values
array<string|int, mixed>setApplyDefaultRestrictions()
public
setApplyDefaultRestrictions(bool $applyDefaultRestrictions) : self
Parameters
- $applyDefaultRestrictions : bool
Return values
selfgetConfiguredWebhooks()
protected
getConfiguredWebhooks() : array<string, WebhookInstruction>
Return values
array<string, WebhookInstruction>getQueryBuilder()
protected
getQueryBuilder([bool $addDefaultOrderByClause = true ]) : QueryBuilder
Parameters
- $addDefaultOrderByClause : bool = true
Return values
QueryBuildergetQueryBuilderForDemand()
protected
getQueryBuilderForDemand(WebhookDemand $demand) : QueryBuilder
Parameters
- $demand : WebhookDemand
Return values
QueryBuildermap()
protected
map(array<string|int, mixed> $rows) : array<string|int, mixed>
Parameters
- $rows : array<string|int, mixed>
Return values
array<string|int, mixed>mapSingleRow()
protected
mapSingleRow(array<string|int, mixed> $row) : WebhookInstruction
Parameters
- $row : array<string|int, mixed>