‪TYPO3CMS  ‪main
TYPO3\CMS\Webhooks\Repository\WebhookRepository Class Reference

Public Member Functions

 __construct (protected readonly ConnectionPool $connectionPool, protected readonly FrontendInterface $runtimeCache,)
 
WebhookInstruction[] findAll ()
 
 countAll ()
 
 getWebhookRecords (?WebhookDemand $demand=null)
 
WebhookInstruction[] findByDemand (WebhookDemand $demand)
 
 setApplyDefaultRestrictions (bool $applyDefaultRestrictions)
 
array< string, getConfiguredWebhooksByType(string $type):array { $webhooks=$this-> getConfiguredWebhooks ()
 

Public Attributes

return $webhooks
 

Protected Member Functions

array< string, getConfiguredWebhooks():array { $webhooks=[];foreach( $this->findAll() as $webhook) { $webhooks[ $webhook-> getIdentifier ()]
 
 getQueryBuilderForDemand (WebhookDemand $demand)
 
 map (array $rows)
 
 mapSingleRow (array $row)
 
 getQueryBuilder (bool $addDefaultOrderByClause=true)
 

Protected Attributes

string $cacheIdentifierPrefix = 'webhooks_'
 
bool $applyDefaultRestrictions = false
 

Detailed Description

Accessing webhook records from the database

This class is not part of TYPO3's Core API.

Definition at line 34 of file WebhookRepository.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Webhooks\Repository\WebhookRepository::__construct ( protected readonly ConnectionPool  $connectionPool,
protected readonly FrontendInterface  $runtimeCache 
)

Definition at line 39 of file WebhookRepository.php.

Member Function Documentation

◆ countAll()

TYPO3\CMS\Webhooks\Repository\WebhookRepository::countAll ( )

◆ findAll()

WebhookInstruction [] TYPO3\CMS\Webhooks\Repository\WebhookRepository::findAll ( )

◆ findByDemand()

◆ getConfiguredWebhooks()

array<string, getConfiguredWebhooksByType(string $type): array { $webhooks = $this-> TYPO3\CMS\Webhooks\Repository\WebhookRepository::getConfiguredWebhooks ( )
Returns
‪array<string, WebhookInstruction>

◆ getIdentifier()

array<string, getConfiguredWebhooks(): array { $webhooks = []; foreach ($this->findAll() as $webhook) { $webhooks[$webhook-> TYPO3\CMS\Webhooks\Repository\WebhookRepository::getIdentifier ( )
protected
Returns
‪array<string, WebhookInstruction>

◆ getQueryBuilder()

TYPO3\CMS\Webhooks\Repository\WebhookRepository::getQueryBuilder ( bool  $addDefaultOrderByClause = true)
protected

◆ getQueryBuilderForDemand()

◆ getWebhookRecords()

TYPO3\CMS\Webhooks\Repository\WebhookRepository::getWebhookRecords ( ?WebhookDemand  $demand = null)

◆ map()

TYPO3\CMS\Webhooks\Repository\WebhookRepository::map ( array  $rows)
protected

◆ mapSingleRow()

TYPO3\CMS\Webhooks\Repository\WebhookRepository::mapSingleRow ( array  $row)
protected

◆ setApplyDefaultRestrictions()

TYPO3\CMS\Webhooks\Repository\WebhookRepository::setApplyDefaultRestrictions ( bool  $applyDefaultRestrictions)

Member Data Documentation

◆ $applyDefaultRestrictions

bool TYPO3\CMS\Webhooks\Repository\WebhookRepository::$applyDefaultRestrictions = false
protected

◆ $cacheIdentifierPrefix

string TYPO3\CMS\Webhooks\Repository\WebhookRepository::$cacheIdentifierPrefix = 'webhooks_'
protected

Definition at line 36 of file WebhookRepository.php.

◆ $webhooks

return TYPO3\CMS\Webhooks\Repository\WebhookRepository::$webhooks

Definition at line 101 of file WebhookRepository.php.