[ Index ]

PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12)

title

Body

[close]

/template/lib/mootools/more-1.3/Types/ -> String.QueryString.js (source)

   1  String.implement({parseQueryString:function(d,a){if(d==null){d=true}if(a==null){a=true}var c=this.split(/[&;]/),b={};if(!c.length){return b}c.each(function(i){var e=i.indexOf("=")+1,g=e?i.substr(e):"",f=e?i.substr(0,e-1).match(/([^\]\[]+|(\B)(?=\]))/g):[i],h=b;if(!f){return}if(a){g=decodeURIComponent(g)}f.each(function(k,j){if(d){k=decodeURIComponent(k)}var l=h[k];if(j<f.length-1){h=h[k]=l||{}}else{if(typeOf(l)=="array"){l.push(g)}else{h[k]=l!=null?[l,g]:g}}})});return b},cleanQueryString:function(a){return this.split("&").filter(function(e){var b=e.indexOf("="),c=b<0?"":e.substr(0,b),d=e.substr(b+1);return a?a.call(null,c,d):(d||d===0)}).join("&")}});


Generated: Sun Jan 29 16:31:14 2012 Cross-referenced by PHPXref 0.7.1