X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Frequest%2Fclass_BaseRequest.php;h=efd3c881e7767a7485b8ed55605432fe28d867b7;hp=2bc5b0599fd4cb5b81535a14ca65a6d0a87e692d;hb=1ee35e6d96c456b8e3499bd683f1647aa28bd501;hpb=0d566e56ff27dcbf25a90d513950bbf26fe71422 diff --git a/inc/classes/main/request/class_BaseRequest.php b/inc/classes/main/request/class_BaseRequest.php index 2bc5b059..efd3c881 100644 --- a/inc/classes/main/request/class_BaseRequest.php +++ b/inc/classes/main/request/class_BaseRequest.php @@ -2,11 +2,11 @@ /** * A general request class * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,11 +28,11 @@ class BaseRequest extends BaseFrameworkSystem { private $requestData = array(); /** - * Wether this request is valid and can be further processed. The default is - * valid so make sure your intercepting filters sets this attribute to false + * Whether this request is valid and can be further processed. The default is + * valid so make sure your intercepting filters sets this attribute to FALSE * when they need to intercept the data flow. */ - private $requestIsValid = true; + private $requestIsValid = TRUE; /** * Protected constructor @@ -46,9 +46,9 @@ class BaseRequest extends BaseFrameworkSystem { } /** - * Checks wether a request element is set + * Checks whether a request element is set * @param $element Name of the request element we want to check - * @return $isSet Wether the request element is set + * @return $isSet Whether the request element is set */ public function isRequestElementSet ($element) { // Is this element found? @@ -67,7 +67,7 @@ class BaseRequest extends BaseFrameworkSystem { */ public function getRequestElement ($element) { // Initialize value - $value = null; + $value = NULL; // Is the element set? if ($this->isRequestElementSet($element)) { @@ -113,19 +113,19 @@ class BaseRequest extends BaseFrameworkSystem { } /** - * Sets wether the request was valid (default: true) + * Sets whether the request was valid (default: TRUE) * - * @param $isValid Wether the request is valid + * @param $isValid Whether the request is valid * @return void */ - public final function requestIsValid ($isValid = true) { + public final function requestIsValid ($isValid = TRUE) { $this->requestIsValid = (bool) $isValid; } /** - * Returns wether this request is valid + * Returns whether this request is valid * - * @return $requestIsValid Wether this request is valid + * @return $requestIsValid Whether this request is valid */ public final function isRequestValid () { return $this->requestIsValid;