|
| | on ($params=[], callable $call) |
| |
| | invoke ($params=[]) |
| |
This will invoke this event with the given $params
- Returns
- true if the event should be canceled or false if not.
| on |
( |
|
$params = [], |
|
|
callable |
$call |
|
) |
| |
This will listen on this event where the $params match.
Example:
Standards::ForumSystem()->event("thread.create")->on(
["forum" => function ($eventName, $forumEntity) {
if ($forumEntity->getName() == "News")
return true;
return false;
}],
function ($eventName, $params) {
return false;
}
);
Initial value:= [
"ForumSystem.thread.create" => [
"description" => "When a forum thread is about to be created"
The documentation for this class was generated from the following file: