getUserInput(JetBackup::ID_FIELD, 0, UserInput::UINT); } /** * @return void * @throws AjaxException * @throws DBException * @throws IOException * @throws InvalidArgumentException */ public function execute(): void { if(!$this->getId()) throw new AjaxException("No schedule id provided"); $schedule = new Schedule($this->getId()); if(!$schedule->getId() || $schedule->isHidden()) throw new AjaxException("Invalid schedule id provided"); $this->setResponseData($this->isCLI() ? $schedule->getDisplayCLI() : $schedule->getDisplay()); } }