phpDocumentor

ConfigurationReader

Class ConfigurationReader

Table of Contents

$connection  : Connection
__construct()  : mixed
ConfigurationReader constructor.
find()  : array<string|int, mixed>|null
Finds a configuration item by the given key.
findLanguageDependent()  : array<string|int, mixed>|null
Finds a language dependent configuration item by the given key and language code.
has()  : bool
Checks if configuration value for given key is available.
hasLanguageDependent()  : bool
Checks if configuration value for given key and language code is available.
createSelect()  : string
Creates a select query string from the given fields.
languageCodeToId()  : string|null
Converts the language code into a language id.

Properties

Methods

__construct()

ConfigurationReader constructor.

public __construct(Connection $queryBuilder) : mixed
Parameters
$queryBuilder : Connection
Return values
mixed

find()

Finds a configuration item by the given key.

public find(string $key) : array<string|int, mixed>|null

Returns null if no matching item was found.

Parameters
$key : string
Return values
array<string|int, mixed>|null

findLanguageDependent()

Finds a language dependent configuration item by the given key and language code.

public findLanguageDependent(string $key, string $languageCode) : array<string|int, mixed>|null

Returns null if if nothing was found with given arguments.

Parameters
$key : string
$languageCode : string
Return values
array<string|int, mixed>|null

has()

Checks if configuration value for given key is available.

public has(string $key) : bool
Parameters
$key : string
Return values
bool

hasLanguageDependent()

Checks if configuration value for given key and language code is available.

public hasLanguageDependent(string $key, string $languageCode) : bool
Parameters
$key : string
$languageCode : string
Return values
bool

createSelect()

Creates a select query string from the given fields.

private createSelect(array<string|int, mixed> $selectedFields) : string

Backticks are applied to the final returned string.

Parameters
$selectedFields : array<string|int, mixed>
Return values
string

languageCodeToId()

Converts the language code into a language id.

private languageCodeToId(string $languageCode) : string|null
Parameters
$languageCode : string
Return values
string|null

Search results