getUserInput(Logging::DEBUG, false, UserInput::BOOL); } /** * @return int * @throws AjaxException */ private function _getLogRotate(): int { return $this->getUserInput(Logging::LOG_ROTATE, 0, UserInput::UINT); } /** * @return void * @throws AjaxException * @throws FieldsValidationException * @throws IOException * @throws InvalidArgumentException */ public function execute(): void { $settings = Factory::getSettingsLogging(); if($this->isset(Logging::DEBUG)) $settings->setDebugEnabled($this->_getDebug()); if($this->isset(Logging::LOG_ROTATE)) $settings->setLogRotate($this->_getLogRotate()); $settings->validateFields(); $settings->save(); $this->setResponseMessage('Saved Successfully'); $this->setResponseData($this->isCLI() ? $settings->getDisplayCLI() : $settings->getDisplay()); } }