]> git.mjollnir.org Git - moodle.git/commit
MDL-15813 "return params or a param from moodle_url params and param method when...
authorjamiesensei <jamiesensei>
Thu, 24 Jul 2008 15:22:31 +0000 (15:22 +0000)
committerjamiesensei <jamiesensei>
Thu, 24 Jul 2008 15:22:31 +0000 (15:22 +0000)
commitc1f41c59b7edbef4d049c44587af282956b64ff1
tree060c19a860975f087fe3e6dee5aace0bc961bb36
parent876c7b831e21e9f3dd04706d6319a888b40c4932
MDL-15813 "return params or a param from moodle_url params and param method when no value is passed to method to set url param(s)."

Methods param and params can now be used in the following ways :

$url->params(); // returns params

$url->params($arrayofnewparams);// add params to url params and then returns all the params.

//--

$url->param('id');//returns value of id param.

$url->param('id', 5); set id param to 5.
lib/weblib.php