Documentation

z_generalModel extends z_model
in package

The general model does general stuff that is needed everywhere

Table of Contents

checkUniqueRef()  : mixed
Checks for a unique reference
getGroups()  : mixed
getLanguageById()  : array<string|int, mixed>|null
Gets a single dataset of a language by its id
getLanguageByValue()  : int
Gets the id of a language by its value
getLanguageList()  : array<string|int, array<string|int, mixed>>
Gets a list of all languages in the database
getUniqueRef()  : string
Gets a unique reference

Methods

checkUniqueRef()

Checks for a unique reference

public checkUniqueRef(string $ref) : mixed
Parameters
$ref : string

The unique reference

Return values
mixed

getLanguageById()

Gets a single dataset of a language by its id

public getLanguageById(int $id) : array<string|int, mixed>|null
Parameters
$id : int

ID of the language

Return values
array<string|int, mixed>|null

Language dataset

getLanguageByValue()

Gets the id of a language by its value

public getLanguageByValue(string $value[, mixed $defaultLanguageId = 1 ]) : int
Parameters
$value : string

The short form of the language (EN, DE_Formal...)

$defaultLanguageId : mixed = 1
Return values
int

The id of the language

getLanguageList()

Gets a list of all languages in the database

public getLanguageList() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>

The language datasets

getUniqueRef()

Gets a unique reference

public getUniqueRef() : string
Return values
string

A unique string

Search results