ThemeBlogCategory
in package
implements
Creatable, Updatable, Deletable
Uses
EntityTrait, DeletableEntityTrait
This class contains a blog category connected to a theme
Tags
Interfaces, Classes, Traits and Enums
- Creatable
- Updatable
- Deletable
Table of Contents
- $blogCategoryId : int
- $name : string
- $themeId : int
- create() : void
- Creates the current theme blog category
- findByTheme() : Iterator<string|int, ThemeBlogCategory>
- Finds all theme blog categories in the theme with the given ID
- findByThemeAndName() : ThemeBlogCategory|null
- Finds a blog category by name and theme
- format() : array<string, array<string, mixed>|string|null>
- Formats the theme blog category into an array
- getBlogCategory() : BlogCategory|null
- Gets the blog category associated to this theme blog category
- update() : void
Properties
$blogCategoryId
public
int
$blogCategoryId
= -1
The blog category ID
Tags
$name
public
string
$name
= ''
The theme name
Tags
$themeId
public
int
$themeId
= -1
The theme id
Tags
Methods
create()
Creates the current theme blog category
public
create() : void
Tags
Return values
void —findByTheme()
Finds all theme blog categories in the theme with the given ID
public
static findByTheme(int $themeId) : Iterator<string|int, ThemeBlogCategory>
Parameters
- $themeId : int
Tags
Return values
Iterator<string|int, ThemeBlogCategory> —findByThemeAndName()
Finds a blog category by name and theme
public
static findByThemeAndName(int $themeId, string $name) : ThemeBlogCategory|null
Parameters
- $themeId : int
- $name : string
Tags
Return values
ThemeBlogCategory|null —format()
Formats the theme blog category into an array
public
format() : array<string, array<string, mixed>|string|null>
Tags
Return values
array<string, array<string, mixed>|string|null> —getBlogCategory()
Gets the blog category associated to this theme blog category
public
getBlogCategory() : BlogCategory|null
Tags
Return values
BlogCategory|null —update()
public
update() : void