EventCallback

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

Table of Contents

Properties

$method  : string
$object  : object
$targetArguments  : array<string|int, mixed>

Methods

__construct()  : mixed
Creates the objects.
execute()  : mixed
Executes the callback.

Properties

$targetArguments

protected array<string|int, mixed> $targetArguments

Methods

__construct()

Creates the objects.

public __construct(object $object, string $method[, array<string|int, mixed> $targetArguments = [] ]) : mixed
Parameters
$object : object
$method : string
$targetArguments : array<string|int, mixed> = []

(optional)

execute()

Executes the callback.

public execute(array<string|int, mixed> $callerArguments, object $caller, string $eventName) : mixed
Parameters
$callerArguments : array<string|int, mixed>
$caller : object
$eventName : string

        
On this page

Search results