summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TClientScriptManager.php
diff options
context:
space:
mode:
authorxue <>2006-08-30 12:34:52 +0000
committerxue <>2006-08-30 12:34:52 +0000
commitfe715da56a2c7a23f2f54349899cda62a312b0ff (patch)
tree762b79d3c8b1b0e4b2532d8a9216f320ed1a102c /framework/Web/UI/TClientScriptManager.php
parent64ed4e4c12d9f1da130aae8855d240192cf25104 (diff)
Some naming change.
Diffstat (limited to 'framework/Web/UI/TClientScriptManager.php')
-rw-r--r--framework/Web/UI/TClientScriptManager.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index 5546ed3f..30009c63 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -121,7 +121,7 @@ class TClientScriptManager extends TApplicationComponent
$this->_registeredPradoScripts[$name]=true;
if(!isset(self::$_pradoScripts[$name]))
throw new TInvalidOperationException('csmanager_pradoscript_invalid',$name);
- $basePath=$this->getPradoBaseScriptPath();
+ $basePath=$this->getPradoScriptBasePath();
foreach(self::$_pradoScripts[$name] as $script)
{
if(!isset($this->_registeredPradoFiles[$script]))
@@ -133,7 +133,10 @@ class TClientScriptManager extends TApplicationComponent
}
}
- protected function getPradoBaseScriptPath()
+ /**
+ * @return string the directory containing the PRADO js script files
+ */
+ protected function getPradoScriptBasePath()
{
$basePath = Prado::getFrameworkPath().'/'.self::SCRIPT_PATH;
if($this->getApplication()->getMode()===TApplication::STATE_DEBUG)
@@ -142,6 +145,10 @@ class TClientScriptManager extends TApplicationComponent
return $basePath.'/compressed';
}
+ /**
+ * Renders the HTML tags for PRADO js files
+ * @param THtmlWriter writer
+ */
protected function renderPradoScripts($writer)
{
$files='';
@@ -155,7 +162,7 @@ class TClientScriptManager extends TApplicationComponent
}
if($files!=='')
{
- $basePath=$this->getPradoBaseScriptPath();
+ $basePath=$this->getPradoScriptBasePath();
$scriptLoader=$basePath.'/'.self::SCRIPT_LOADER;
$url=$this->publishFilePath($scriptLoader).'?js='.trim($files,',');
if($this->getApplication()->getMode()===TApplication::STATE_DEBUG)