summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TDataList.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/WebControls/TDataList.php
parent4724cb4ed35c6cdb31e2c3381002f62bd6530e5a (diff)
Modified onSaveState to saveState, and onLoadState to loadState.
Diffstat (limited to 'framework/Web/UI/WebControls/TDataList.php')
-rw-r--r--framework/Web/UI/WebControls/TDataList.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/TDataList.php b/framework/Web/UI/WebControls/TDataList.php
index f5292220..d04acdaf 100644
--- a/framework/Web/UI/WebControls/TDataList.php
+++ b/framework/Web/UI/WebControls/TDataList.php
@@ -1018,10 +1018,10 @@ class TDataList extends TBaseDataList implements INamingContainer, IRepeatInfoUs
/**
* Saves item count in viewstate.
* This method is invoked right before control state is to be saved.
- * @param mixed event parameter
*/
- public function onSaveState($param)
+ public function saveState()
{
+ parent::saveState();
if($this->_items)
$this->setViewState('ItemCount',$this->_items->getCount(),0);
else
@@ -1031,10 +1031,10 @@ class TDataList extends TBaseDataList implements INamingContainer, IRepeatInfoUs
/**
* Loads item count information from viewstate.
* This method is invoked right after control state is loaded.
- * @param mixed event parameter
*/
- public function onLoadState($param)
+ public function loadState()
{
+ parent::loadState();
if(!$this->getIsDataBound())
$this->restoreItemsFromViewState();
$this->clearViewState('ItemCount');