summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TClientScriptManager.php
diff options
context:
space:
mode:
authorxue <>2006-02-20 23:25:30 +0000
committerxue <>2006-02-20 23:25:30 +0000
commiteecb18e702bc269bbf7fd5b4f8a9ec9e18557031 (patch)
tree57bfa51874585eb7d092254bab627a416adf7e7a /framework/Web/UI/TClientScriptManager.php
parent8e5627918e7f0c437df1a47af27545132a1c3cbc (diff)
Code cleanup and added some documentation.
Diffstat (limited to 'framework/Web/UI/TClientScriptManager.php')
-rw-r--r--framework/Web/UI/TClientScriptManager.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index 5ff5dba6..17d680c3 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -136,6 +136,11 @@ class TClientScriptManager extends TApplicationComponent
}
}
+ /**
+ * Registers postback javascript for a control.
+ * @param TControl control to be registered with postback js
+ * @param string js namespace for the control
+ */
public function registerPostBackControl($control,$namespace='Prado.WebUI')
{
$options = $this->getPostBackOptions($control);
@@ -149,6 +154,10 @@ class TClientScriptManager extends TApplicationComponent
$this->registerPradoScript('prado');
}
+ /**
+ * @param TControl postback control
+ * @return array postback options for the control
+ */
protected function getPostBackOptions($control)
{
$postback = $control->getPostBackOptions();