From 44ad5a3da8186c8db6a7afe351bff0621c50a1fc Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 11 Jul 2018 09:26:42 +0000 Subject: [PATCH] route : add setter/getter for debug param git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4280 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- route.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/route.php b/route.php index f3d9d7a..ae04f30 100644 --- a/route.php +++ b/route.php @@ -69,6 +69,17 @@ class route $this->ratelimiter = new ratelimitfile (); } + /** Get / Set the debug level + * @param integer|null $val The value to set. If null, will return the actual + * value + */ + public function debug ($val = null) + { + if ($val === null) + return $this->debug; + $this->debug = intval ($val); + } + /** Return the baseURL of the site * Always finish with a slash * @param string|null $module The module name (if thereis one)