CronjobService
in package
implements
CronjobServiceInterface
Class CronjobService
Interfaces, Classes and Traits
- CronjobServiceInterface
- Interface CronjobServiceInterface
Table of Contents
- $repository : CronjobRepositoryInterface
- __construct() : mixed
- CronjobService constructor.
- getAll() : CronjobCollection
- Returns all cronjobs.
- getByName() : Cronjob
- Returns a cronjob by the given identifier.
- save() : void
- Saves cronjob configuration into the storage.
Properties
$repository
protected
CronjobRepositoryInterface
$repository
Methods
__construct()
CronjobService constructor.
public
__construct(CronjobRepositoryInterface $repository) : mixed
Parameters
- $repository : CronjobRepositoryInterface
-
Access to cronjob data.
Return values
mixed —getAll()
Returns all cronjobs.
public
getAll() : CronjobCollection
Return values
CronjobCollection —Collected cronjobs with meta data about execution.
getByName()
Returns a cronjob by the given identifier.
public
getByName(StringType $name) : Cronjob
Parameters
- $name : StringType
-
Cronjob identifier.
Return values
Cronjob —Cronjob of given identifier.
save()
Saves cronjob configuration into the storage.
public
save(StringType $cronjob, KeyValueCollection $data) : void
Parameters
- $cronjob : StringType
-
Name of configured cronjob.
- $data : KeyValueCollection
-
Configuration data.