Neuron-PHP

IEventCategoryRepository

Repository interface for EventCategory entities.

Table of Contents

Methods

all()  : array<string|int, EventCategory>
Get all event categories
create()  : EventCategory
Create new category
delete()  : bool
Delete category
findById()  : EventCategory|null
Find category by ID
findByIds()  : array<string|int, EventCategory>
Find categories by IDs
findBySlug()  : EventCategory|null
Find category by slug
slugExists()  : bool
Check if category slug exists (excluding a specific ID)
update()  : EventCategory
Update category

Methods

slugExists()

Check if category slug exists (excluding a specific ID)

public slugExists(string $slug[, int|null $excludeId = null ]) : bool
Parameters
$slug : string
$excludeId : int|null = null
Return values
bool

        
On this page

Search results