route : add setter/getter for debug param

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4280 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-07-11 09:26:42 +00:00
parent 4a98f6275f
commit 44ad5a3da8

View File

@@ -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)