SearchTemplateContract
Table of Contents
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
create()
public
create(array<string|int, mixed> $data) : int
Parameters
-
$data
: array<string|int, mixed>
-
delete()
public
delete(int $id) : bool
Parameters
-
$id
: int
-
findById()
public
findById(int $id) : object|null
Parameters
-
$id
: int
-
Return values
object|null
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>
getFeatured()
public
getFeatured() : array<string|int, mixed>
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>
-