WebVIEP Plugin

BoothItemRepositoryWp implements BoothItemRepository

Table of Contents

Interfaces

BoothItemRepository
Repository interface for BoothItem aggregates.

Methods

findByBoothId()  : array<int, BoothItem>
Find booth items belonging to a booth.
findById()  : BoothItem|null
Find a booth item by its identifier.
getBoothItemIdByPostId()  : BoothItemId|null
Resolve a BoothItemId from a WordPress post ID.
save()  : void
Persist changes for a BoothItem aggregate.
searchByBoothItems()  : BoothItemSearchresult
Search booth items for a given booth.
searchByCriteria()  : BoothItemSearchresult
Search booth items respecting topics/query and optional booth filter.
createDateOrNull()  : DateTimeImmutable|null
Helper for date fields.
findPostIdByBoothItemId()  : int|null
Map BoothItemId to WordPress post ID.
mapDomainStatusToWp()  : string
Map domain status to a WordPress post_status value.
mapPost()  : BoothItem
Map a WordPress post to a BoothItem aggregate.
mapPostIdToBoothItemId()  : BoothItemId
Map post ID to BoothItemId value object.

Methods

getBoothItemIdByPostId()

Resolve a BoothItemId from a WordPress post ID.

public getBoothItemIdByPostId(int $postId) : BoothItemId|null
Parameters
$postId : int

WordPress post ID.

Return values
BoothItemId|null

createDateOrNull()

Helper for date fields.

private createDateOrNull(mixed $value) : DateTimeImmutable|null
Parameters
$value : mixed

Raw date value.

Return values
DateTimeImmutable|null

mapDomainStatusToWp()

Map domain status to a WordPress post_status value.

private mapDomainStatusToWp(string $status) : string
Parameters
$status : string

Domain status.

Return values
string

        
On this page

Search results