From 112d86bb08a1dd4bde14005f757c95b0fc7a5a21 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 4 Jun 2006 20:51:27 +0000 Subject: Merge from 3.0 branch till 1140. --- framework/Web/UI/TControl.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI/TControl.php') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 10541a37..eced51ea 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -591,6 +591,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable } /** + * Sets a custom control attribute. * @param string attribute name * @param string value of the attribute */ @@ -1336,18 +1337,18 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable } /** - * Invokes the parent's onBubbleEvent method. + * Invokes the parent's bubbleEvent method. * A control who wants to bubble an event must call this method in its onEvent method. * @param TControl sender of the event * @param TEventParameter event parameter - * @see onBubbleEvent + * @see bubbleEvent */ protected function raiseBubbleEvent($sender,$param) { $control=$this; while($control=$control->_parent) { - if($control->onBubbleEvent($sender,$param)) + if($control->bubbleEvent($sender,$param)) break; } } @@ -1361,7 +1362,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable * @return boolean true if the event bubbling is handled and no more bubbling. * @see raiseBubbleEvent */ - public function onBubbleEvent($sender,$param) + public function bubbleEvent($sender,$param) { return false; } -- cgit v1.2.3