From: Roland Häder Date: Fri, 17 Feb 2023 08:13:44 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ef3ba784ac193d3d760a1f4fec156895f57f9e3a;p=city.git Continued: - requestIsValid() is now renamed to a propper setter setIsRequestValid() and with no default (setters don't have default values) - updated 'core' framework --- diff --git a/application/city/classes/controller/console/class_CityConsoleDefaultNewsController.php b/application/city/classes/controller/console/class_CityConsoleDefaultNewsController.php index e41a820..ab46954 100644 --- a/application/city/classes/controller/console/class_CityConsoleDefaultNewsController.php +++ b/application/city/classes/controller/console/class_CityConsoleDefaultNewsController.php @@ -88,7 +88,7 @@ class CityConsoleDefaultNewsController extends BaseController implements Control $this->executePreFilters($requestInstance, $responseInstance); // This request was valid! :-D - $requestInstance->requestIsValid(); + $requestInstance->setIsRequestValid(TRUE); // Execute the command $commandInstance->execute($requestInstance, $responseInstance); diff --git a/application/city/classes/controller/html/class_CityHtmlLoginFailedController.php b/application/city/classes/controller/html/class_CityHtmlLoginFailedController.php index 9a8da44..5881633 100644 --- a/application/city/classes/controller/html/class_CityHtmlLoginFailedController.php +++ b/application/city/classes/controller/html/class_CityHtmlLoginFailedController.php @@ -76,7 +76,7 @@ class CityHtmlLoginFailedController extends BaseController implements Controller $commandInstance = $this->getResolverInstance()->resolveCommandByRequest($requestInstance); // This request was valid! :-D - $requestInstance->requestIsValid(); + $requestInstance->setIsRequestValid(TRUE); // Execute the command $commandInstance->execute($requestInstance, $responseInstance); diff --git a/application/city/classes/controller/html/class_CityHtmlLogoutController.php b/application/city/classes/controller/html/class_CityHtmlLogoutController.php index 990ff38..a09ac8a 100644 --- a/application/city/classes/controller/html/class_CityHtmlLogoutController.php +++ b/application/city/classes/controller/html/class_CityHtmlLogoutController.php @@ -83,7 +83,7 @@ class CityHtmlLogoutController extends BaseController implements Controller { $commandInstance = $this->getResolverInstance()->resolveCommandByRequest($requestInstance); // This request was valid! :-D - $requestInstance->requestIsValid(); + $requestInstance->setIsRequestValid(TRUE); // Execute the command $commandInstance->execute($requestInstance, $responseInstance); diff --git a/application/city/classes/filter/verifier/class_CityNameVerifierFilter.php b/application/city/classes/filter/verifier/class_CityNameVerifierFilter.php index cb9e6ca..97e3026 100644 --- a/application/city/classes/filter/verifier/class_CityNameVerifierFilter.php +++ b/application/city/classes/filter/verifier/class_CityNameVerifierFilter.php @@ -76,7 +76,7 @@ class CityNameVerifierFilter extends BaseFilter implements Filterable { // Is the city name set? if (is_null($cityName)) { // Not found in form so stop the filtering process - $requestInstance->requestIsValid(FALSE); + $requestInstance->setIsRequestValid(FALSE); // Add a message to the response $responseInstance->addFatalMessage('city_name_unset'); @@ -85,7 +85,7 @@ class CityNameVerifierFilter extends BaseFilter implements Filterable { throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED); } elseif (empty($cityName)) { // Empty field! - $requestInstance->requestIsValid(FALSE); + $requestInstance->setIsRequestValid(FALSE); // Add a message to the response $responseInstance->addFatalMessage('city_name_empty'); @@ -94,7 +94,7 @@ class CityNameVerifierFilter extends BaseFilter implements Filterable { throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED); } elseif ($this->ifCityNameIsTaken($cityName) === TRUE) { // City name is already taken - $requestInstance->requestIsValid(FALSE); + $requestInstance->setIsRequestValid(FALSE); // Add a message to the response $responseInstance->addFatalMessage('city_name_taken'); diff --git a/core b/core index ad17ce1..262f905 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit ad17ce1c5fe13f2290e74bec676f23e65c2e9100 +Subproject commit 262f905be8d6f9dc9fd02acc9505cb45ef2a53f6