Description of HttpRequest
Used in LSYii_Application.php
'request'=>array( 'class'=>'HttpRequest', 'noCsrfValidationRoutes'=>array( '^services/wsdl.*$' ), 'enableCsrfValidation'=>true, 'enableCookieValidation'=>true, ),
Every route will be interpreted as a regex pattern.
package | Default |
---|
getOriginalUrlReferrer()
getPathInfo()
getQueryParams(): array
This method will return the contents of $_GET
if params where not explicitly set.
see | \LSHttpRequest::setQueryParams() |
---|---|
array
the request GET parameter values.
getUrlReferrer( $sAlternativeUrl = null): string
If it the case, a paramater can be set to tell what referrer to return. If the referrer is an external url, Yii return by default the current url.
DEPRECATED
The checkLoopInNavigationStack-Method will check for looping, though the forbiddenUrl array is not required anymore
Not all "close" and "save and close" buttons should use it. Only close button for pages that can be accessed since different places. eg: edit question, that can be accessed from question list or question
TODO: implement it for all those pages List of pages where it should be implemented :
TODO: remove misused of it It should not be used for pages accessible from only one place
In doubt, just use getUrlReferrer with a default link to home page for full page layout pages, or a link to the survey summary for sidemenu layout pages, with the controller action as forbidden world. So the close button will never loop.
TODO : Each time a new quick action or button is added to access an existing page, the "close" & "save and close" button should be updated to use getUrlReferrer()
string, the url to return if referrer url is the same than current url.
string
if success, else null
normalizeRequest()
setQueryParams(array $values)
see | \LSHttpRequest::getQueryParams() |
---|---|
array
the request query parameters (name-value pairs)
_pathInfo :
noCsrfValidationRoutes :
noCsrfValidationParams :
queryParams :\array<string,mixed>|null
var | the request query parameters (name-value pairs) |
---|
\array|null