web\Request getQueryParams()

getQueryParams() public method Returns the request parameters given in the $queryString. This method will return the contents of $_GET if params where not explicitly set. See also setQueryParams(). public array getQueryParams ( )return array The request GET parameter values.

web\Request getPreferredLanguage()

getPreferredLanguage() public method Returns the user-preferred language that should be used by this application. The language resolution is based on the user preferred languages and the languages supported by the application. The method will try to find the best match. public string getPreferredLanguage ( array $languages = [] )$languages array A list of the languages supported by the application. If this is empty, the current application language will be returned without further proces

web\Request getMethod()

getMethod() public method Returns the method of the current request (e.g. GET, POST, HEAD, PUT, PATCH, DELETE). public string getMethod ( )return string Request method, such as GET, POST, HEAD, PUT, PATCH, DELETE. The value returned is turned into upper case.

web\Request getPort()

getPort() public method Returns the port to use for insecure requests. Defaults to 80, or the port specified by the server if the current request is insecure. See also setPort(). public integer getPort ( )return integer Port number for insecure requests.

web\Request getPathInfo()

getPathInfo() public method Returns the path info of the currently requested URL. A path info refers to the part that is after the entry script and before the question mark (query string). The starting and ending slashes are both removed. public string getPathInfo ( )return string Part of the request URL that is after the entry script and before the question mark. Note, the returned path info is already URL-decoded. throws yii\base\InvalidConfigException if the path info cannot be dete

web\Request getIsPut()

getIsPut() public method Returns whether this is a PUT request. public boolean getIsPut ( )return boolean Whether this is a PUT request.

web\Request getIsPost()

getIsPost() public method Returns whether this is a POST request. public boolean getIsPost ( )return boolean Whether this is a POST request.

web\Request getIsSecureConnection()

getIsSecureConnection() public method Return if the request is sent via secure channel (https). public boolean getIsSecureConnection ( )return boolean If the request is sent via secure channel (https)

web\Request getIsPatch()

getIsPatch() public method Returns whether this is a PATCH request. public boolean getIsPatch ( )return boolean Whether this is a PATCH request.

web\Request getIsPjax()

getIsPjax() public method Returns whether this is a PJAX request public boolean getIsPjax ( )return boolean Whether this is a PJAX request