sfEvent.

package symfony
subpackage event_dispatcher
author Fabien Potencier
version SVN: $Id: sfEvent.class.php 8698 2008-04-30 16:35:28Z fabien $

 Methods

Constructs a new sfEvent.

__construct(mixed $subject, string $name, array $parameters) 

Parameters

$subject

mixed

The subject

$name

string

The event name

$parameters

array

An array of parameters

Returns the event name.

getName() : string

Returns

stringThe event name

Returns the event parameters.

getParameters() : array

Returns

arrayThe event parameters

Returns the return value.

getReturnValue() : mixed

Returns

mixedThe return value

Returns the subject.

getSubject() : mixed

Returns

mixedThe subject

Returns whether the event has been processed by a listener or not.

isProcessed() : Boolean

Returns

Booleantrue if the event has been processed, false otherwise

Returns true if the parameter exists (implements the ArrayAccess interface).

offsetExists(string $name) : Boolean

Parameters

$name

string

The parameter name

Returns

Booleantrue if the parameter exists, false otherwise

Returns a parameter value (implements the ArrayAccess interface).

offsetGet(string $name) : mixed

Parameters

$name

string

The parameter name

Returns

mixedThe parameter value

Sets a parameter (implements the ArrayAccess interface).

offsetSet(string $name, mixed $value) 

Parameters

$name

string

The parameter name

$value

mixed

The parameter value

Removes a parameter (implements the ArrayAccess interface).

offsetUnset(string $name) 

Parameters

$name

string

The parameter name

Sets the processed flag.

setProcessed(Boolean $processed) 

Parameters

$processed

Boolean

The processed flag value

Sets the return value for this event.

setReturnValue(mixed $value) 

Parameters

$value

mixed

The return value

 Properties

 

$name

$name 

 

$parameters

$parameters 

 

$processed

$processed 

 

$subject

$subject 

 

$value

$value