AbstractEvent

Implements EventInterface, ArrayAccess, Serializable, Countable

Implementation of EventInterface.

abstract
since

1.0

package

Joomla Framework

Methods

__construct

Constructor.

__construct(string name, array arguments = []) : mixed
since

1.0

Arguments

name

stringThe event name.

arguments

arrayThe event arguments.

Response

mixed

__serialize

Serialize the event.

__serialize() : array
since

2.0.0

Response

arrayThe data to be serialized

__unserialize

Unserialize the event.

__unserialize(array data) : void
since

2.0.0

Arguments

data

arrayThe serialized event.

count

Count the number of arguments.

count() : int
since

1.0

Response

intThe number of arguments.

getArgument

Get an event argument value.

getArgument(string name, mixed default = null) : mixed
since

1.0

Arguments

name

stringThe argument name.

default

mixedThe default value if not found.

Response

mixedThe argument value or the default value.

getArguments

Get all event arguments.

getArguments() : array
since

1.0

Response

arrayAn associative array of argument names as keys and their values as values.

getName

Get the event name.

getName() : string
since

1.0

Response

stringThe event name.

hasArgument

Tell if the given event argument exists.

hasArgument(string name) : bool
since

1.0

Arguments

name

stringThe argument name.

Response

boolTrue if it exists, false otherwise.

isStopped

Tell if the event propagation is stopped.

isStopped() : bool
since

1.0

Response

boolTrue if stopped, false otherwise.

offsetExists

Tell if the given event argument exists.

offsetExists(string name) : bool
since

1.0

Arguments

name

stringThe argument name.

Response

boolTrue if it exists, false otherwise.

offsetGet

Get an event argument value.

offsetGet(string name) : mixed
since

1.0

Arguments

name

stringThe argument name.

Response

mixedThe argument value or null if not existing.

serialize

Serialize the event.

serialize() : string
since

1.0

Response

stringThe serialized event.

stopPropagation

Stops the propagation of the event to further event listeners.

stopPropagation() : void
since

2.0.0

unserialize

Unserialize the event.

unserialize(string serialized) : void
since

1.0

Arguments

serialized

stringThe serialized event.

Properties

name

The event name.

since

1.0

Type(s)

string

arguments

The event arguments.

since

1.0

Type(s)

array

stopped

A flag to see if the event propagation is stopped.

since

1.0

Type(s)

bool