Jinya CMS

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

This class contains a form connected to a theme

Tags

Interfaces, Classes, Traits and Enums

Creatable
Updatable
Deletable

Table of Contents

$formId  : int
$name  : string
$themeId  : int
create()  : void
Creates the current theme form
findByTheme()  : Iterator<string|int, ThemeForm>
Finds the forms for the given theme
findByThemeAndName()  : ThemeForm|null
Finds a form by name and theme
format()  : array<string, array<string, array<string, array<string, string|null>|string>|int|string>|string|null>
Formats the theme form into an array
getForm()  : Form|null
Gets the form of the theme form
update()  : void

Properties

$formId

public int $formId = -1

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

public create() : void
Tags
Return values
void

findByTheme()

Finds the forms for the given theme

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

findByThemeAndName()

Finds a form by name and theme

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

format()

Formats the theme form 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>

getForm()

Gets the form of the theme form

public getForm() : Form|null
Tags
Return values
Form|null

update()

public update() : void
Tags
inheritDoc
Return values
void

Search results