function _DatabaseHandler::set_maintenance_mode
Search API
4.x _DatabaseHandler.php | _DatabaseHandler::set_maintenance_mode($val) |
5.x _DatabaseHandler.php | _DatabaseHandler::set_maintenance_mode($val) |
Sets the maintenance mode. $val should be either 0 (off) or 1 (on)
Parameters
integer $val:
File
- classes/
_DatabaseHandler.php, line 80
Class
Code
function set_maintenance_mode($val)
{
// Convenience function for setting maintenance mode. 0 = off, 1 = on.
$this->set_settings_variable("maintenance_mode", $val);
}