Jinya CMS

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

This class contains a gallery connected to a theme

Tags

Interfaces, Classes, Traits and Enums

Creatable
Updatable
Deletable

Table of Contents

$galleryId  : int
$name  : string
$themeId  : int
create()  : void
Creates the given theme gallery
findByTheme()  : Iterator<string|int, ThemeGallery>
Finds the galleries for the given theme
findByThemeAndName()  : ThemeGallery|null
Finds a gallery by name and theme
format()  : array<string, array<string, array<string, array<string, string|null>|string>|int|string>|string|null>
Formats the theme gallery into an array
getGallery()  : Gallery|null
Gets the gallery of the theme gallery
update()  : void

Properties

$galleryId

public int $galleryId = -1

The gallery ID

Tags

Methods

create()

Creates the given theme gallery

public create() : void
Tags
Return values
void

findByTheme()

Finds the galleries for the given theme

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

findByThemeAndName()

Finds a gallery by name and theme

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

format()

Formats the theme gallery into an array

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

update()

public update() : void
Tags
inheritDoc
Return values
void

Search results