From c8ae832e160d1b873034efbb04ad94e1003d4143 Mon Sep 17 00:00:00 2001
From: xue <>
Date: Sat, 18 Feb 2006 23:24:43 +0000
Subject: cleaning up TClientScriptManager.
---
framework/Web/Javascripts/TJavaScript.php | 48 +++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
(limited to 'framework/Web/Javascripts')
diff --git a/framework/Web/Javascripts/TJavaScript.php b/framework/Web/Javascripts/TJavaScript.php
index f1efb5b3..02dfdd6a 100644
--- a/framework/Web/Javascripts/TJavaScript.php
+++ b/framework/Web/Javascripts/TJavaScript.php
@@ -24,6 +24,54 @@
*/
class TJavaScript
{
+ public static function renderScriptFiles($files)
+ {
+ $str='';
+ foreach($files as $file)
+ $str.='\n";
+ return $str;
+ }
+
+ public static function renderScriptFile($file)
+ {
+ return '\n";
+ }
+
+ public static function renderScriptBlocks($scripts)
+ {
+ if(count($scripts))
+ return "\n";
+ else
+ return '';
+ }
+
+ public static function renderScriptBlock($script)
+ {
+ return "\n";
+ }
+
+ public static function renderArrayDeclarations($arrays)
+ {
+ if(count($arrays))
+ {
+ $str="\n";
+ return $str;
+ }
+ else
+ return '';
+ }
+
+ public static function renderArrayDeclaration($array)
+ {
+ $str="\n";
+ return $str;
+ }
+
public static function quoteJavaScriptString($js,$forUrl=false)
{
if($forUrl)
--
cgit v1.2.3