‪TYPO3CMS  ‪main
TYPO3\CMS\Scheduler\Tests\Unit\Task\Fixtures\TestTask Class Reference
Inheritance diagram for TYPO3\CMS\Scheduler\Tests\Unit\Task\Fixtures\TestTask:
TYPO3\CMS\Scheduler\Task\AbstractTask

Public Member Functions

 __construct ()
 
 execute ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
string getAdditionalInformation ()
 
 setTaskUid ($id)
 
int getTaskUid ()
 
string getTaskTitle ()
 
string getTaskDescription ()
 
string getTaskClassName ()
 
bool isDisabled ()
 
 setDisabled ($flag)
 
 setRunOnNextCronJob ($flag)
 
bool getRunOnNextCronJob ()
 
 setExecutionTime ($timestamp)
 
int null getTaskGroup ()
 
 setTaskGroup ($taskGroup)
 
int getExecutionTime ()
 
 setDescription ($description)
 
string getDescription ()
 
 setScheduler ()
 
 unsetScheduler ()
 
 registerSingleExecution ($timestamp)
 
 registerRecurringExecution ($start, $interval, $end=0, $multiple=false, $cron_cmd='')
 
 setExecution (Execution $execution)
 
Execution object null getExecution ()
 
int getNextDueExecution ()
 
bool areMultipleExecutionsAllowed ()
 
bool save ()
 
 stop ()
 
int getType ()
 

Public Attributes

array $any = []
 
- ‪Public Attributes inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
const TYPE_SINGLE = 1
 
const TYPE_RECURRING = 2
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
 logException (\Exception $e)
 
 getLanguageService ()
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
TYPO3 CMS Scheduler Scheduler null $scheduler
 
int $taskUid = 0
 
bool $disabled = false
 
bool $runOnNextCronJob = false
 
Execution $execution
 
int $executionTime = 0
 
string $description = ''
 
int null $taskGroup = 0
 

Detailed Description

Definition at line 22 of file TestTask.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Scheduler\Tests\Unit\Task\Fixtures\TestTask::__construct ( )

Constructor

Reimplemented from TYPO3\CMS\Scheduler\Task\AbstractTask.

Definition at line 26 of file TestTask.php.

Member Function Documentation

◆ execute()

TYPO3\CMS\Scheduler\Tests\Unit\Task\Fixtures\TestTask::execute ( )

This is the main method that is called when a task is executed It MUST be implemented by all classes inheriting from this one Note that there is no error handling, errors and failures are expected to be handled and logged by the client implementations. Should return TRUE on successful execution, FALSE on error.

Returns
‪bool Returns TRUE on successful execution, FALSE on error

Reimplemented from TYPO3\CMS\Scheduler\Task\AbstractTask.

Definition at line 28 of file TestTask.php.

Member Data Documentation

◆ $any

array TYPO3\CMS\Scheduler\Tests\Unit\Task\Fixtures\TestTask::$any = []

Definition at line 24 of file TestTask.php.