/** * Open or close the site for maintenance * * @param string $switch - 'open' or 'close' */ public function openCloseSite($switch = 'open') { require_once LIBS . 'Maintenance.php'; $maintenance = new Maintenance(); $maintenance->openCloseSite($this, $switch); }