From 81d3bc50d96a11bd411f8f0fa5831a85228ffe4e Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 2 Feb 2006 23:53:32 +0000 Subject: Modified onSaveState to saveState, and onLoadState to loadState. --- framework/Web/UI/TPage.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'framework/Web/UI/TPage.php') diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 5f583f0b..11f89ab5 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -525,11 +525,10 @@ class TPage extends TTemplateControl * This method is invoked when control state is to be saved. * You can override this method to do last step state saving. * Parent implementation must be invoked. - * @param TEventParameter event parameter */ - public function onSaveState($param) + public function saveState() { - parent::onSaveState($param); + parent::saveState(); $this->setViewState('ControlsRequiringPostBack',$this->_controlsRegisteredForPostData,array()); } @@ -537,12 +536,11 @@ class TPage extends TTemplateControl * This method is invoked right after the control has loaded its state. * You can override this method to initialize data from the control state. * Parent implementation must be invoked. - * @param TEventParameter */ - public function onLoadState($param) + public function loadState() { + parent::loadState(); $this->_controlsRequiringPostData=$this->getViewState('ControlsRequiringPostBack',array()); - parent::onLoadState($param); } /** -- cgit v1.2.3