trigger() public static method
Triggers a class-level event.
This method will cause invocation of event handlers that are attached to the named event for the specified class and all its parent classes.
| public static void trigger ( $class, $name, $event = null ) | ||
|---|---|---|
| $class | string|object |
The object or the fully qualified class name specifying the class-level event. |
| $name | string |
The event name. |
| $event | yii\base\Event |
The event parameter. If not set, a default yii\base\Event object will be created. |
Please login to continue.