Interface for event management.
| Methods | |
|---|---|
|
public
|
Adds the handler of an event. |
|
public
|
Deletes all handlers of all events. |
|
public
|
Deletes the handler of an event. |
|
public
|
Deletes all handlers of an event. |
|
public
|
Fires and event. |
|
public
|
Resumes all previously suspended events. |
|
public
|
Resumes a previously suspended event. |
|
public
|
Suspends an event. |
Adds the handler of an event.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $event | by value | string |
Event code. |
|
| $handler | by value | callable |
The name or definition of the handler function. The signature of this function is:
|
It might throw an exception in the case of any errors.
Deletes all handlers of all events.
Deletes the handler of an event.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $event | by value | string |
Event code. |
|
| $handler | by value | callable |
The name or definition of the handler function. otherwise false. |
It might throw an exception in the case of any errors.
Deletes all handlers of an event.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $event | by value | string |
Event code. |
It might throw an exception in the case of any errors.
Fires and event.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $event | by value | string |
Event code. |
|
| $parameters | by value | array |
Event code. |
Should return number of the handlers called for this event.
It might throw an exception in the case of any errors.
Resumes all previously suspended events.
Resumes a previously suspended event.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $event | by value | string |
Event code. |
It might throw an exception in the case of any errors.
Suspends an event.
If an event is suspended, its handlers are not called when the event is fired.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $event | by value | string |
Event code. |
It might throw an exception in the case of any errors.