summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TControl.php
diff options
context:
space:
mode:
authorxue <>2006-02-02 23:53:32 +0000
committerxue <>2006-02-02 23:53:32 +0000
commit81d3bc50d96a11bd411f8f0fa5831a85228ffe4e (patch)
tree16cc6afdef11be7708502ebf2f22c8486134710f /framework/Web/UI/TControl.php
parent4724cb4ed35c6cdb31e2c3381002f62bd6530e5a (diff)
Modified onSaveState to saveState, and onLoadState to loadState.
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r--framework/Web/UI/TControl.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php
index b5fccd7b..5c959b7f 100644
--- a/framework/Web/UI/TControl.php
+++ b/framework/Web/UI/TControl.php
@@ -1267,22 +1267,18 @@ class TControl extends TComponent
* 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()
{
- $this->raiseEvent('OnSaveState',$this,$param);
}
/**
* 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()
{
- $this->raiseEvent('OnLoadState',$this,$param);
}
/**
@@ -1334,10 +1330,10 @@ class TControl extends TComponent
if(!empty($state))
$this->_rf[self::RF_CHILD_STATE]=&$state;
$this->_stage=self::CS_STATE_LOADED;
- $this->onLoadState(null);
}
- else // no state to load and thus no need onLoadState()
+ else
$this->_stage=self::CS_STATE_LOADED;
+ $this->loadState();
}
/**
@@ -1347,7 +1343,7 @@ class TControl extends TComponent
*/
final protected function &saveStateRecursive($needViewState=true)
{
- $this->onSaveState(null);
+ $this->saveState();
$needViewState=($needViewState && !($this->_flags & self::IS_DISABLE_VIEWSTATE));
$state=array();
if($this->getHasControls())