base\Event trigger()

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.

doc_Yii
2016-10-30 16:51:38
Comments
Leave a Comment

Please login to continue.