CronjobConfigurationStorage

Subclass of ConfigurationStorage for parameters concerning cron tasks

package

Default

Methods

YetAnotherConfigurationStorage constructor.

__construct(\CI_DB_query_builder $db, \CronjobSettings $cronjobSettings) 

Arguments

$db

\CI_DB_query_builder

$cronjobSettings

\CronjobSettings

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

_getDefaultFromJson(array $jsonConfiguration, string $configuration) : mixed

If not, an exception is thrown.

Throws
\CronjobConfigurationNotFoundException

Arguments

$jsonConfiguration

array

Json configuration data.

$configuration

string

Expected configuration field.

Response

mixed

Fetches a cronjob configuration value.

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

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

Throws
\CronjobConfigurationNotFoundException

Arguments

$scope

string

Cronjob configuration scope, e.g.: DeleteLogs

$configuration

string

Configuration key, e.g.: interval

Response

mixed

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

cronjobSettings

cronjobSettings : \CronjobSettings
var

Type(s)

\CronjobSettings