From 99ecc26ddd9c6f0233aff2770e82c9db80fd0b4c Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 31 Jan 2006 01:30:28 +0000 Subject: All events are now defined with public on-functions. This is to comply with the new change introduced since 5.1. --- framework/Web/UI/TControl.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'framework/Web/UI/TControl.php') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index ee1b8e11..b5fccd7b 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -1101,7 +1101,7 @@ class TControl extends TComponent * so that the event handlers can be invoked. * @param TEventParameter event parameter to be passed to the event handlers */ - protected function onInit($param) + public function onInit($param) { $this->raiseEvent('OnInit',$this,$param); } @@ -1113,7 +1113,7 @@ class TControl extends TComponent * so that the event handlers can be invoked. * @param TEventParameter event parameter to be passed to the event handlers */ - protected function onLoad($param) + public function onLoad($param) { $this->raiseEvent('OnLoad',$this,$param); } @@ -1123,7 +1123,7 @@ class TControl extends TComponent * This method is invoked when {@link dataBind} is invoked. * @param TEventParameter event parameter to be passed to the event handlers */ - protected function onDataBinding($param) + public function onDataBinding($param) { $this->raiseEvent('OnDataBinding',$this,$param); } @@ -1136,7 +1136,7 @@ class TControl extends TComponent * so that the event handlers can be invoked. * @param TEventParameter event parameter to be passed to the event handlers */ - protected function onUnload($param) + public function onUnload($param) { $this->raiseEvent('OnUnload',$this,$param); } @@ -1148,7 +1148,7 @@ class TControl extends TComponent * so that the event handlers can be invoked. * @param TEventParameter event parameter to be passed to the event handlers */ - protected function onPreRender($param) + public function onPreRender($param) { $this->raiseEvent('OnPreRender',$this,$param); } @@ -1179,7 +1179,7 @@ class TControl extends TComponent * @return boolean true if the event bubbling is handled and no more bubbling. * @see raiseBubbleEvent */ - protected function onBubbleEvent($sender,$param) + public function onBubbleEvent($sender,$param) { return false; } @@ -1269,7 +1269,7 @@ class TControl extends TComponent * Parent implementation must be invoked. * @param TEventParameter event parameter */ - protected function onSaveState($param) + public function onSaveState($param) { $this->raiseEvent('OnSaveState',$this,$param); } @@ -1280,7 +1280,7 @@ class TControl extends TComponent * Parent implementation must be invoked. * @param TEventParameter */ - protected function onLoadState($param) + public function onLoadState($param) { $this->raiseEvent('OnLoadState',$this,$param); } -- cgit v1.2.3