Jinya CMS

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

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>

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>

Search results