summaryrefslogtreecommitdiff
path: root/it_url.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 /it_url.class
parent1786f3c08e42c33e52673544138941d0c71fd283 (diff)
downloaditools-ca62110b9ec5e7f5157aa34dd0fc48b2c3f24a73.tar.gz
itools-ca62110b9ec5e7f5157aa34dd0fc48b2c3f24a73.tar.bz2
itools-ca62110b9ec5e7f5157aa34dd0fc48b2c3f24a73.zip
declare functions static
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class8
1 files changed, 4 insertions, 4 deletions
diff --git a/it_url.class b/it_url.class
index 81729c6..a48013e 100644
--- a/it_url.class
+++ b/it_url.class
@@ -702,7 +702,7 @@ function _atomicwrite($path, $data)
* @param $url Optional URL ( foo.html, /foo.html, //host/bar.html, http://host/bar.html ), default self
* @return absolute version of URL ( http[s]://host/bar.html )
*/
-function absolute($url=null)
+static function absolute($url=null)
{
if (!isset($url))
$url = $_SERVER['PHP_SELF'];
@@ -744,7 +744,7 @@ function redirect($url = null, $type = "temporary")
/**
* Urlencode but leave some chars
*/
-function encode($str)
+static function encode($str)
{
return strtr(urlencode($str), array("%2C"=>",", "%28"=>"(", "%29"=>")"));
}
@@ -754,12 +754,12 @@ function encode($str)
* @param $params Array to take values from, usually $_GET
* @param $keys Keys to use; default: all
*/
-function params($params, $keys = null)
+static function params($params, $keys = null)
{
return join("&", it_url::_params($params, $keys));
}
-function _params($params, $keys = null)
+static function _params($params, $keys = null)
{
$result = array();