‪TYPO3CMS  10.4
TYPO3\CMS\Workspaces\Dependency\EventCallback Class Reference

Public Member Functions

 __construct ($object, $method, array $targetArguments=[])
 
mixed execute (array $callerArguments=[], $caller, $eventName)
 

Protected Attributes

object $object
 
string $method
 
array $targetArguments
 

Detailed Description

Object to hold information on a callback to a defined object and method.

Definition at line 21 of file EventCallback.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Workspaces\Dependency\EventCallback::__construct (   $object,
  $method,
array  $targetArguments = [] 
)

Creates the objects.

Parameters
object$object
string$method
array$targetArguments‪(optional)

Definition at line 42 of file EventCallback.php.

References TYPO3\CMS\Workspaces\Dependency\EventCallback\$method, TYPO3\CMS\Workspaces\Dependency\EventCallback\$object, and TYPO3\CMS\Workspaces\Dependency\EventCallback\$targetArguments.

Member Function Documentation

◆ execute()

mixed TYPO3\CMS\Workspaces\Dependency\EventCallback::execute ( array  $callerArguments = [],
  $caller,
  $eventName 
)

Executes the callback.

Parameters
array$callerArguments
object$caller
string$eventName
Returns
‪mixed

Definition at line 58 of file EventCallback.php.

References TYPO3\CMS\Workspaces\Dependency\EventCallback\$method, and TYPO3\CMS\Workspaces\Dependency\EventCallback\$object.

Member Data Documentation

◆ $method

string TYPO3\CMS\Workspaces\Dependency\EventCallback::$method
protected

◆ $object

object TYPO3\CMS\Workspaces\Dependency\EventCallback::$object
protected

◆ $targetArguments

array TYPO3\CMS\Workspaces\Dependency\EventCallback::$targetArguments
protected