|
|
@ -432,7 +432,7 @@ class Component extends Object |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Triggers an event. |
|
|
|
* Triggers an event. |
|
|
|
* This method represents the happening of an event. It invokes |
|
|
|
* This method represents the happening of an event. It invokes |
|
|
|
* all attached handlers for the event including 'class-level' handlers |
|
|
|
* all attached handlers for the event including class-level handlers. |
|
|
|
* @param string $name the event name |
|
|
|
* @param string $name the event name |
|
|
|
* @param Event $event the event parameter. If not set, a default [[Event]] object will be created. |
|
|
|
* @param Event $event the event parameter. If not set, a default [[Event]] object will be created. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -457,7 +457,7 @@ class Component extends Object |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//invoke 'class-level' attached handlers |
|
|
|
// invoke class-level attached handlers |
|
|
|
Event::trigger($this, $name, $event); |
|
|
|
Event::trigger($this, $name, $event); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|