From fe715da56a2c7a23f2f54349899cda62a312b0ff Mon Sep 17 00:00:00 2001
From: xue <>
Date: Wed, 30 Aug 2006 12:34:52 +0000
Subject: Some naming change.

---
 framework/Web/UI/TClientScriptManager.php | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

(limited to 'framework/Web/UI')

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)
-- 
cgit v1.2.3