‪TYPO3CMS  ‪main
TYPO3\CMS\Scheduler\Task\TaskSerializer Class Reference

Public Member Functions

 deserialize (string $serializedTask)
class string< T > string resolveClassName (object $task)
 extractClassName (string $serializedTask)

Detailed Description

Handles serialization of AbstractTask objects.

This is an internal API, avoid using it in custom implementations.

Definition at line 27 of file TaskSerializer.php.

Member Function Documentation

◆ deserialize()

TYPO3\CMS\Scheduler\Task\TaskSerializer::deserialize ( string  $serializedTask)

This method takes care of safely deserializing tasks from the database and either returns a valid Task or throws an InvalidTaskException, which holds information about the broken task.


Definition at line 36 of file TaskSerializer.php.

◆ extractClassName()

TYPO3\CMS\Scheduler\Task\TaskSerializer::extractClassName ( string  $serializedTask)

If the task class couldn't be figured out from the unserialization (because of uninstalled extensions or exceptions), try to find it in the serialized string with a simple preg match.

Definition at line 72 of file TaskSerializer.php.

◆ resolveClassName()

class string<T> string TYPO3\CMS\Scheduler\Task\TaskSerializer::resolveClassName ( object  $task)

@template T of object


Definition at line 58 of file TaskSerializer.php.