Heratio Framework API Reference

SearchTemplateRepository
in package
implements SearchTemplateContract

Table of Contents

Interfaces

SearchTemplateContract

Methods

create()  : int
delete()  : bool
findById()  : object|null
findBySlug()  : object|null
getAll()  : array<string|int, mixed>
getByCategory()  : array<string|int, mixed>
getFeatured()  : array<string|int, mixed>
update()  : bool

Methods

create()

public create(array<string|int, mixed> $data) : int
Parameters
$data : array<string|int, mixed>
Return values
int

findBySlug()

public findBySlug(string $slug) : object|null
Parameters
$slug : string
Return values
object|null

getAll()

public getAll([bool $activeOnly = true ]) : array<string|int, mixed>
Parameters
$activeOnly : bool = true
Return values
array<string|int, mixed>

getByCategory()

public getByCategory([string|null $category = null ]) : array<string|int, mixed>
Parameters
$category : string|null = null
Return values
array<string|int, mixed>

update()

public update(int $id, array<string|int, mixed> $data) : bool
Parameters
$id : int
$data : array<string|int, mixed>
Return values
bool

        
On this page

Search results