TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
EventCallback Class Reference

Public Member Functions

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

Protected Attributes

 $object
 
 $method
 
 $targetArguments
 

Detailed Description

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

Definition at line 20 of file EventCallback.php.

Constructor & Destructor Documentation

__construct (   $object,
  $method,
array  $targetArguments = [] 
)

Creates the objects.

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

Definition at line 44 of file EventCallback.php.

References EventCallback\$method, EventCallback\$object, and EventCallback\$targetArguments.

Member Function Documentation

execute ( array  $callerArguments = [],
  $caller,
  $eventName 
)

Executes the callback.

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

Definition at line 60 of file EventCallback.php.

Member Data Documentation

$method
protected

Definition at line 30 of file EventCallback.php.

Referenced by EventCallback\__construct().

$object
protected

Definition at line 25 of file EventCallback.php.

Referenced by EventCallback\__construct().

$targetArguments
protected

Definition at line 35 of file EventCallback.php.

Referenced by EventCallback\__construct().