Jinya CMS

ThemeMenu
in package
implements Creatable, Updatable, Deletable Uses EntityTrait, DeletableEntityTrait

This class contains a menu connected to a theme

Tags

Interfaces, Classes, Traits and Enums

Creatable
Updatable
Deletable

Table of Contents

$menuId  : int
$name  : string
$themeId  : int
create()  : void
Creates the current theme menu
findByTheme()  : Iterator<string|int, ThemeMenu>
Finds the menus for the given theme
findByThemeAndName()  : ThemeMenu|null
Finds a menu by name and theme
format()  : array<string, array<string, array<string, int|string>|int|string>|string|null>
Formats the theme menu into an array
getMenu()  : Menu|null
Gets the menu of the theme menu
update()  : void

Properties

$menuId

public int $menuId = -1

The menu 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 menu

public create() : void
Tags
Return values
void

findByTheme()

Finds the menus for the given theme

public static findByTheme(int $themeId) : Iterator<string|int, ThemeMenu>
Parameters
$themeId : int
Tags
Return values
Iterator<string|int, ThemeMenu>

findByThemeAndName()

Finds a menu by name and theme

public static findByThemeAndName(int $themeId, string $name) : ThemeMenu|null
Parameters
$themeId : int
$name : string
Tags
Return values
ThemeMenu|null

format()

Formats the theme menu into an array

public format() : array<string, array<string, array<string, int|string>|int|string>|string|null>
Tags
Return values
array<string, array<string, array<string, int|string>|int|string>|string|null>

getMenu()

Gets the menu of the theme menu

public getMenu() : Menu|null
Tags
Return values
Menu|null

update()

public update() : void
Tags
inheritDoc
Return values
void

Search results