diff options
author | xue <> | 2006-08-30 12:34:52 +0000 |
---|---|---|
committer | xue <> | 2006-08-30 12:34:52 +0000 |
commit | fe715da56a2c7a23f2f54349899cda62a312b0ff (patch) | |
tree | 762b79d3c8b1b0e4b2532d8a9216f320ed1a102c | |
parent | 64ed4e4c12d9f1da130aae8855d240192cf25104 (diff) |
Some naming change.
-rw-r--r-- | framework/Web/UI/TClientScriptManager.php | 13 |
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) |