function DatabaseHandler::set_maintenance_mode

7.x DatabaseHandler.php DatabaseHandler::set_maintenance_mode($val)
6.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 82

Class

DatabaseHandler

Code

function set_maintenance_mode($val) 
 {
  // Convenience function for setting maintenance mode. 0 = off, 1 = on.
  $this->set_settings_variable("maintenance_mode", $val);
}