‪TYPO3CMS  ‪main
TYPO3\CMS\Scheduler\Validation\Validator\TaskValidator Class Reference

Public Member Functions

bool isValid (mixed $value)

Detailed Description

Definition at line 22 of file TaskValidator.php.

Member Function Documentation

◆ isValid()

bool TYPO3\CMS\Scheduler\Validation\Validator\TaskValidator::isValid ( mixed  $value)

This method encapsulates a very simple test for the purpose of clarity. Registered tasks are stored in the database along with a serialized task object. When a registered task is fetched, its object is unserialized. At that point, if the class corresponding to the object is not available anymore (e.g. because the extension providing it has been uninstalled), the unserialization will produce an incomplete object. This test checks whether the unserialized object is of the right (parent) class or not.

mixed$value‪The object to test
‪bool TRUE if object is a task, FALSE otherwise

Definition at line 36 of file TaskValidator.php.

References TYPO3\CMS\Scheduler\Task\AbstractTask\getExecution().