aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Request.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Minz/Request.php')
-rw-r--r--lib/Minz/Request.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index 9179eb368..2ad02014f 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -27,6 +27,13 @@ class Minz_Request {
public static function params() {
return self::$params;
}
+ /**
+ * Read the URL parameter
+ * @param string $key Key name
+ * @param mixed $default default value, if no parameter is given
+ * @param bool $specialchars special characters
+ * @return mixed value of the parameter
+ */
public static function param($key, $default = false, $specialchars = false) {
if (isset(self::$params[$key])) {
$p = self::$params[$key];