/** * Hudson system functions * * @param string $switch */ public static function system($host, $username, $password, $debug, $switch) { $hudson = new Php4Hudson_Hudson($host, $username, $password, $debug); // test switches switch ($switch) { case "restart": $hudson->restartHudson(); break; case "shutdown": $hudson->goingDownHudson(); break; case "cancel": $hudson->cancelDownHudson(); break; } }