summaryrefslogtreecommitdiff
path: root/core/router.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/router.php')
-rw-r--r--core/router.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/router.php b/core/router.php
index 5a27276c..56a95e52 100644
--- a/core/router.php
+++ b/core/router.php
@@ -20,11 +20,18 @@ class Router
$this->action = empty($_GET['action']) ? $controller : $_GET['action'];
}
+ /**
+ * @param string $default_value
+ */
public function sanitize($value, $default_value)
{
return ! ctype_alpha($value) || empty($value) ? $default_value : strtolower($value);
}
+ /**
+ * @param string $filename
+ * @param string $class
+ */
public function load($filename, $class, $method)
{
if (file_exists($filename)) {