ConnectionEvent
Extends EventDatabase connection event
since |
2.0.0 |
---|---|
package |
Joomla Framework |
Methods
__construct
Constructor.
__construct(string name, array arguments = []) : mixed
since |
1.0 |
---|
Arguments
- name
string
The event name.- arguments
array
The event arguments.
Response
mixed
__serialize
Serialize the event.
__serialize() : array
since |
2.0.0 |
---|
Response
array
The data to be serialized
__unserialize
Unserialize the event.
__unserialize(array data) : void
since |
2.0.0 |
---|
Arguments
- data
array
The serialized event.
addArgument
Add an event argument, only if it is not existing.
addArgument(string name, mixed value) : $this
since |
1.0 |
---|
Arguments
- name
string
The argument name.- value
mixed
The argument value.
Response
$this
clearArguments
Clear all event arguments.
clearArguments() : array
since |
1.0 |
---|
Response
array
The old arguments.
count
Count the number of arguments.
count() : int
since |
1.0 |
---|
Response
int
The number of arguments.
getArgument
Get an event argument value.
getArgument(string name, mixed default = null) : mixed
since |
1.0 |
---|
Arguments
- name
string
The argument name.- default
mixed
The default value if not found.
Response
mixed
The argument value or the default value.
getArguments
Get all event arguments.
getArguments() : array
since |
1.0 |
---|
Response
array
An associative array of argument names as keys and their values as values.
getDriver
Retrieve the DatabaseInterface object attached to this event.
getDriver() : \Joomla\Database\DatabaseInterface
since |
2.0.0 |
---|
Response
\Joomla\Database\DatabaseInterface
getName
Get the event name.
getName() : string
since |
1.0 |
---|
Response
string
The event name.
hasArgument
Tell if the given event argument exists.
hasArgument(string name) : bool
since |
1.0 |
---|
Arguments
- name
string
The argument name.
Response
bool
True if it exists, false otherwise.
isStopped
Tell if the event propagation is stopped.
isStopped() : bool
since |
1.0 |
---|
Response
bool
True if stopped, false otherwise.
offsetExists
Tell if the given event argument exists.
offsetExists(string name) : bool
since |
1.0 |
---|
Arguments
- name
string
The argument name.
Response
bool
True if it exists, false otherwise.
offsetGet
Get an event argument value.
offsetGet(string name) : mixed
since |
1.0 |
---|
Arguments
- name
string
The argument name.
Response
mixed
The argument value or null if not existing.
offsetSet
Set the value of an event argument.
offsetSet(string name, mixed value) : void
since |
1.0 |
---|---|
throws |
|
Arguments
- name
string
The argument name.- value
mixed
The argument value.
offsetUnset
Remove an event argument.
offsetUnset(string name) : void
since |
1.0 |
---|
Arguments
- name
string
The argument name.
removeArgument
Remove an event argument.
removeArgument(string name) : mixed
since |
1.0 |
---|
Arguments
- name
string
The argument name.
Response
mixed
The old argument value or null if it is not existing.
serialize
Serialize the event.
serialize() : string
since |
1.0 |
---|
Response
string
The serialized event.
setArgument
Add argument to event.
setArgument(string name, mixed value) : $this
since |
1.0 |
---|
Arguments
- name
string
Argument name.- value
mixed
Value.
Response
$this
stop
Stop the event propagation.
stop() : void
since |
1.0 |
---|---|
deprecated |
3.0 Use stopPropogation instead |
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
string
The serialized event.
Properties
driver
DatabaseInterface object for this event
since |
2.0.0 |
---|
Type(s)
\Joomla\Database\DatabaseInterface
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