/** * @param Bot $bot * @return array */ private function _getStatusButtons($bot) { $buttons = array(); $buttons['pause'] = array("url" => $bot->getUrl() . "/pause", "icon" => "icon-pause", "text" => "pause job"); $buttons['dropjob'] = array("url" => $bot->getUrl() . "/dropjob", "icon" => "icon-stop", "text" => "stop job"); $buttons['edit'] = array("url" => $bot->getUrl() . "/edit", "icon" => "icon-cog", "text" => "edit bot"); $buttons['play'] = array("url" => $bot->getUrl() . "/play", "icon" => "icon-play", "text" => "resume job"); $buttons['qa'] = array("url" => $bot->getCurrentJob()->getUrl() . "/qa", "icon" => "icon-check", "text" => "verify output"); $buttons['offline'] = array("url" => $bot->getUrl() . "/setstatus/offline", "icon" => "icon-stop", "text" => "take offline"); $buttons['online'] = array("url" => $bot->getUrl() . "/setstatus/idle", "icon" => "icon-play", "text" => "bring online"); $buttons['retire'] = array("url" => $bot->getUrl() . "/retire", "icon" => "icon-lock", "text" => "retire bot"); $buttons['delete'] = array("url" => $bot->getUrl() . "/delete", "icon" => "icon-remove", "text" => "delete bot"); $buttons['error'] = array("url" => $bot->getURL() . "/error", "icon" => "icon-exclamation-sign", "text" => "error mode"); return $buttons; }