CronjobTaskService
in package
implements
CronjobTaskServiceInterface
Class CronjobTaskService
Interfaces, Classes and Traits
- CronjobTaskServiceInterface
- Interface CronjobTaskServiceInterface
Table of Contents
- $repository : CronjobTaskRepositoryInterface
- __construct() : mixed
- CronjobService constructor.
- getCronjobUrl() : string
- Returns the cronjob url.
- run() : void
- Executes all valid cronjobs.
- createCacheDirectory() : mixed
- setLastRunFlag() : mixed
- Sets a file flag for the last begin of cronjobs execution.
- setLastSuccessFlag() : mixed
- Sets a file flag for the last succceeded cronjobs execution.
Properties
$repository
protected
CronjobTaskRepositoryInterface
$repository
Methods
__construct()
CronjobService constructor.
public
__construct(CronjobTaskRepositoryInterface $repository) : mixed
Parameters
- $repository : CronjobTaskRepositoryInterface
-
Cronjob repository.
Return values
mixed —getCronjobUrl()
Returns the cronjob url.
public
static getCronjobUrl() : string
Return values
string —run()
Executes all valid cronjobs.
public
run() : void
Return values
void —createCacheDirectory()
protected
createCacheDirectory() : mixed
Return values
mixed —setLastRunFlag()
Sets a file flag for the last begin of cronjobs execution.
protected
setLastRunFlag() : mixed
Return values
mixed —setLastSuccessFlag()
Sets a file flag for the last succceeded cronjobs execution.
protected
setLastSuccessFlag() : mixed