TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Version\Dependency\EventCallback Class Reference
Inheritance diagram for TYPO3\CMS\Version\Dependency\EventCallback:
t3lib_utility_Dependency_Callback

Public Member Functions

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

Protected Attributes

 $object
 
 $method
 
 $targetArguments
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! 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()

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

Creates the objects.

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

Definition at line 44 of file EventCallback.php.

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

Member Function Documentation

◆ execute()

TYPO3\CMS\Version\Dependency\EventCallback::execute ( array  $callerArguments = array(),
  $caller,
  $eventName 
)

Executes the callback.

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

Definition at line 59 of file EventCallback.php.

Member Data Documentation

◆ $method

TYPO3\CMS\Version\Dependency\EventCallback::$method
protected

◆ $object

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

◆ $targetArguments

TYPO3\CMS\Version\Dependency\EventCallback::$targetArguments
protected