From 5156cc14ce3d6c35641bf7180f7b402732621a9b Mon Sep 17 00:00:00 2001 From: egorpromo Date: Thu, 12 Dec 2013 21:41:09 +0700 Subject: [PATCH] More docs --- framework/yii/base/Component.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/yii/base/Component.php b/framework/yii/base/Component.php index 9af22a8..9e9e852 100644 --- a/framework/yii/base/Component.php +++ b/framework/yii/base/Component.php @@ -432,7 +432,7 @@ class Component extends Object /** * Triggers an event. * This method represents the happening of an event. It invokes - * all attached handlers for the event. + * all attached handlers for the event including 'class-level' handlers * @param string $name the event name * @param Event $event the event parameter. If not set, a default [[Event]] object will be created. */ @@ -457,6 +457,7 @@ class Component extends Object } } } + //invoke 'class-level' attached handlers Event::trigger($this, $name, $event); }