diff options
author | wei <> | 2006-06-24 05:46:22 +0000 |
---|---|---|
committer | wei <> | 2006-06-24 05:46:22 +0000 |
commit | a6be5564823be40670e0cad8dc758557dbd37549 (patch) | |
tree | 13083fe7ea207b5426c9ee29afc36654e1ed623d /framework/Web/UI/TPage.php | |
parent | cb8b23aca4c682c58323f432aa38a88c7a695377 (diff) |
Update active controls.
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r-- | framework/Web/UI/TPage.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 838d0342..57c66a31 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -291,8 +291,10 @@ class TPage extends TTemplateControl $this->onPreLoad(null);
Prado::trace("Page loadRecursive()",'System.Web.UI.TPage');
$this->loadRecursive();
+
Prado::trace("Page processPostData()",'System.Web.UI.TPage');
$this->processPostData($this->_restPostData,false);
+
Prado::trace("Page raiseChangedEvents()",'System.Web.UI.TPage');
$this->raiseChangedEvents();
@@ -388,7 +390,8 @@ class TPage extends TTemplateControl */
public function registerPostDataLoader($control)
{
- $this->_postDataLoaders[] = $control->getUniqueID();
+ $id=is_string($control)?$control:$control->getUniqueID();
+ $this->_postDataLoaders[$id] = true;
}
/**
@@ -397,7 +400,7 @@ class TPage extends TTemplateControl */
public function getPostDataLoaders()
{
- return $this->_postDataLoaders;
+ return array_keys($this->_postDataLoaders);
}
/**
@@ -747,6 +750,7 @@ class TPage extends TTemplateControl {
$id=is_string($control)?$control:$control->getUniqueID();
$this->_controlsRegisteredForPostData[$id]=true;
+ $this->registerPostDataLoader($id);
$params=func_get_args();
foreach($this->getCachingStack() as $item)
$item->registerAction('Page','registerRequiresPostData',$id);
|