WebVIEP Plugin

TopicRepositoryWp implements TopicRepository

Table of Contents

Interfaces

TopicRepository
Repository interface for topics.

Constants

TAXONOMY  = 'webviep_topic'

Methods

all()  : array<int, Topic>
Return all topics.
create()  : Topic
Create a new topic term from the domain entity.
findById()  : Topic|null
Find a topic by its identifier.
update()  : Topic
Update an existing topic term (or create if missing).
mapTerm()  : Topic|null
Map a WordPress term to a domain Topic.

Constants

Methods

mapTerm()

Map a WordPress term to a domain Topic.

private mapTerm(WP_Term $term) : Topic|null
Parameters
$term : WP_Term

WordPress term.

Return values
Topic|null

        
On this page

Search results