From a7659660330dd097e66e012f3325bd9d5e9db56a Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 10 Dec 2005 02:55:42 +0000 Subject: --- framework/Web/UI/TPage.php | 18 +++++++++--------- framework/Web/UI/WebControls/TCheckBox.php | 2 +- framework/Web/UI/WebControls/TImageButton.php | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 0bcba739..fc63b7e3 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -83,11 +83,11 @@ class TPage extends TTemplateControl /** * @var array list of controls that need to load post data in the current request */ - private $_controlsRequiringPostBack=array(); + private $_controlsRequiringPostData=array(); /** * @var array list of controls that need to load post data in the next postback */ - private $_controlsRegisteredForPostBack=array(); + private $_controlsRegisteredForPostData=array(); /** * @var TControl control that needs to raise postback event */ @@ -511,7 +511,7 @@ class TPage extends TTemplateControl protected function onSaveState($param) { parent::onSaveState($param); - $this->setViewState('ControlsRequiringPostBack',$this->_controlsRegisteredForPostBack,array()); + $this->setViewState('ControlsRequiringPostBack',$this->_controlsRegisteredForPostData,array()); } /** @@ -522,7 +522,7 @@ class TPage extends TTemplateControl */ protected function onLoadState($param) { - $this->_controlsRequiringPostBack=$this->getViewState('ControlsRequiringPostBack',array()); + $this->_controlsRequiringPostData=$this->getViewState('ControlsRequiringPostBack',array()); parent::onLoadState($param); } @@ -557,9 +557,9 @@ class TPage extends TTemplateControl * Registers a control for loading post data in the next postback. * @param TControl control registered for loading post data */ - public function registerRequiresPostBack(TControl $control) + public function registerRequiresPostData(TControl $control) { - $this->_controlsRegisteredForPostBack[$control->getUniqueID()]=true; + $this->_controlsRegisteredForPostData[$control->getUniqueID()]=true; } /** @@ -633,12 +633,12 @@ class TPage extends TTemplateControl } else if($control instanceof IPostBackEventHandler) $this->setPostBackEventTarget($control); - unset($this->_controlsRequiringPostBack[$key]); + unset($this->_controlsRequiringPostData[$key]); } else if($beforeLoad) $this->_restPostData->add($key,$value); } - foreach($this->_controlsRequiringPostBack as $key=>$value) + foreach($this->_controlsRequiringPostData as $key=>$value) { if($control=$this->findControl($key)) { @@ -649,7 +649,7 @@ class TPage extends TTemplateControl } else throw new TInvalidDataValueException('page_postbackcontrol_invalid',$key); - unset($this->_controlsRequiringPostBack[$key]); + unset($this->_controlsRequiringPostData[$key]); } } } diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php index c5bd88d7..caaafa78 100644 --- a/framework/Web/UI/WebControls/TCheckBox.php +++ b/framework/Web/UI/WebControls/TCheckBox.php @@ -115,7 +115,7 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl { parent::onPreRender($param); if($this->getEnabled(true)) - $this->getPage()->registerRequiresPostBack($this); + $this->getPage()->registerRequiresPostData($this); } /** diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php index 33dfde75..96fbff67 100644 --- a/framework/Web/UI/WebControls/TImageButton.php +++ b/framework/Web/UI/WebControls/TImageButton.php @@ -321,7 +321,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven protected function onPreRender($param) { parent::onPreRender($param); - $this->getPage()->registerRequiresPostBack($this); + $this->getPage()->registerRequiresPostData($this); } } -- cgit v1.2.3