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:
11
route.php
11
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)
|
||||
|
||||
Reference in New Issue
Block a user