phpDocumentor

CronjobConfigurationStorage
in package

Subclass of ConfigurationStorage for parameters concerning cron tasks

Table of Contents

$cronjobSettings  : CronjobSettings
$db  : CI_DB_query_builder
__construct()  : mixed
YetAnotherConfigurationStorage constructor.
get()  : mixed
Fetches a cronjob configuration value.
_getDefaultFromJson()  : mixed
Checks if a default value exist in the json configuration file for $configuration.
findGxmodulesConfigurationFile()  : mixed

Properties

Methods

get()

Fetches a cronjob configuration value.

public get(string $scope, string $configuration) : mixed

If nothing was found in storage, a default from the config json file will be used.s

Parameters
$scope : string

Cronjob configuration scope, e.g.: DeleteLogs

$configuration : string

Configuration key, e.g.: interval

Tags
throws
CronjobConfigurationNotFoundException
Return values
mixed

_getDefaultFromJson()

Checks if a default value exist in the json configuration file for $configuration.

protected _getDefaultFromJson(array<string|int, mixed> $jsonConfiguration, string $configuration) : mixed

If not, an exception is thrown.

Parameters
$jsonConfiguration : array<string|int, mixed>

Json configuration data.

$configuration : string

Expected configuration field.

Tags
throws
CronjobConfigurationNotFoundException
Return values
mixed

findGxmodulesConfigurationFile()

protected findGxmodulesConfigurationFile(mixed $scope) : mixed
Parameters
$scope : mixed
Return values
mixed

Search results