summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorUrban Müller2013-01-31 16:24:12 +0000
committerUrban Müller2013-01-31 16:24:12 +0000
commitca62110b9ec5e7f5157aa34dd0fc48b2c3f24a73 (patch)
tree114590837c21c3c348495ad1295cc3070deb5620 /itjs.class
parent1786f3c08e42c33e52673544138941d0c71fd283 (diff)
downloaditools-ca62110b9ec5e7f5157aa34dd0fc48b2c3f24a73.tar.gz
itools-ca62110b9ec5e7f5157aa34dd0fc48b2c3f24a73.tar.bz2
itools-ca62110b9ec5e7f5157aa34dd0fc48b2c3f24a73.zip
declare functions static
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class10
1 files changed, 5 insertions, 5 deletions
diff --git a/itjs.class b/itjs.class
index 6c82540..79158f6 100644
--- a/itjs.class
+++ b/itjs.class
@@ -46,7 +46,7 @@ function send_headers($charset = null)
* @param $envelope Encapsulate the data when callback function is provided (iframe solution)
* @return String with javascript code to be sent to client
*/
-function serialize($values, $envelope = false)
+static function serialize($values, $envelope = false)
{
if (($envelope || isset($values['eof'])) && ($callback = it::replace(array('[^\w.]' => ""), $_REQUEST['itjs_call'])))
{
@@ -70,7 +70,7 @@ function serialize($values, $envelope = false)
/*
* Encode the result into a javascript array to transfer and eval() in client
*/
-function encode($values)
+static function encode($values)
{
static $jskeyword = array("abstract" => 1, "boolean" => 1, "break" => 1, "byte" => 1, "case" => 1, "catch" => 1, "char" => 1, "class" => 1, "const" => 1, "continue" => 1, "debugger" => 1, "default" => 1, "delete" => 1, "do" => 1, "double" => 1, "each" => 1, "else" => 1, "enum" => 1, "export" => 1, "extends" => 1, "false" => 1, "final" => 1, "finally" => 1, "float" => 1, "for" => 1, "function" => 1, "goto" => 1, "if" => 1, "implements" => 1, "import" => 1, "in" => 1, "instanceof" => 1, "int" => 1, "interface" => 1, "long" => 1, "namespace" => 1, "native" => 1, "new" => 1, "null" => 1, "package" => 1, "private" => 1, "protected" => 1, "public" => 1, "return" => 1, "short" => 1, "static" => 1, "super" => 1, "switch" => 1, "synchronized" => 1, "this" => 1, "throw" => 1, "throws" => 1, "transient" => 1, "true" => 1, "try" => 1, "typeof" => 1, "var" => 1, "void" => 1, "volatile" => 1, "while" => 1, "with" => 1, "xml" => 1);
@@ -114,7 +114,7 @@ function encode($values)
return $result;
}
-function filenames($filelist)
+static function filenames($filelist)
{
$result = array();
$path = $GLOBALS['ULTRAHOME'] . "/itjs";
@@ -153,7 +153,7 @@ function filenames($filelist)
* @param $code String containing javascript code to be stripped
* @return Naked code
*/
-function strip($code)
+static function strip($code)
{
if (!it::is_devel())
$code = preg_replace(array(
@@ -172,7 +172,7 @@ function strip($code)
* @param $files Array of filenames to calculate checksum for
* @return Checksum for given files
*/
-function checksum($files = array())
+static function checksum($files = array())
{
$itjs = "/www/server/phpinclude/itools/itjs";
$itools_itjs = glob("$itjs/*.{js,css,php}", GLOB_BRACE);