Jinya CMS

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

This class contains a file connected to a theme

Tags

Interfaces, Classes, Traits and Enums

Creatable
Updatable
Deletable

Table of Contents

$fileId  : int
$name  : string
$themeId  : int
create()  : void
Create the current theme file
findByTheme()  : Iterator<string|int, ThemeFile>
Finds the files for the given theme
findByThemeAndName()  : ThemeFile|null
Finds a file by name and theme
format()  : array{'name': string, 'file': array|null}
Formats the theme file into an array
getFile()  : File|null
Gets the file of the theme file
update()  : void

Properties

$fileId

public int $fileId = -1

The file ID

Tags

$name

public string $name = ''

The theme name

Tags

$themeId

public int $themeId = -1

The theme id

Tags

Methods

create()

Create the current theme file

public create() : void
Tags
Return values
void

findByTheme()

Finds the files for the given theme

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

findByThemeAndName()

Finds a file by name and theme

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

format()

Formats the theme file into an array

public format() : array{'name': string, 'file': array|null}
Tags
throws
Exception
Return values
array{'name': string, 'file': array|null}

getFile()

Gets the file of the theme file

public getFile() : File|null
Tags
Return values
File|null

update()

public update() : void
Tags
inheritDoc
Return values
void

Search results