CronjobReader

Implements \CronjobReaderInterface

Class CronjobReader

package

Default

Methods

CronjobRepository constructor.

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

Arguments

$db

\CI_DB_query_builder

$settings

\CronjobSettings

Returns the configuration value.

_getConfigurationValue(array $configuration, array|null $result = null) : boolean|mixed

If data was found in the $result, they get processed and returned. Otherwise, the default from $configuration is used.

Arguments

$configuration

array

$result

array|null

Response

boolean|mixed

Returns the DateTime that is contained in a given file.

_getDateTimeFromFlagFile(\StringType $flagPath) : \DateTime

Arguments

$flagPath

\StringType

Response

\DateTime

Checks if given file info is a cronjob configuration file.

_isCronjobConfiguration(\SplFileInfo $configFile) : boolean

Arguments

$configFile

\SplFileInfo

Response

boolean

Maps cronjob data by the given config file.

_mapCronjob(\SplFileInfo $configFile) : array

Arguments

$configFile

\SplFileInfo

Response

array

Maps cronjob configurations by their related data.

_mapCronjobConfiguration(string $cronjobName, string $key, array $configuration) : array

Arguments

$cronjobName

string

$key

string

$configuration

array

Response

array

Returns all cronjobs.

getAll() : array

Response

array

Collected cronjobs with meta data about execution.

Returns a cronjob by the given identifier.

getByName(\StringType $name) : array

Arguments

$name

\StringType

Cronjob identifier.

Response

array

Cronjob of given identifier.

Properties

meta

meta : \CronjobMetaInterface
var

Type(s)

\CronjobMetaInterface

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

settings

settings : \CronjobSettings
var

Type(s)

\CronjobSettings