Request methods
__construct( setup )
setupA hash array of optional setup values with the following possible keysisSecurityCsrfWhether this request must implement CSRF security or not.pathComponentsAn array of RequestPathComponent objects defining the components of this request, in the same order on which they're expected.parametersAn array of RequestParameter objects of parameters that might be received by this request.additionalCacheKeysA hash array containing additional cache keys to make this request's cached contents different depending on the values of those keys.
buildUrl( setup )
Builds a valid URL for the request.
setupA hash array with the following possible keyslocaleAn optional string indicating the locale name for which to build the Url. If not specified, the current locale's domain will be used when isAbsolute is true. When specified, returned Url will be absolute.parameterValuesAn optional hash array containing the values for the variable path components and for the GET parameters, if any.isIncludeUrlParametersIncludes the GET parameters in the URL. The passedparameterValueswill be used, or the current request's parameters if noparameterValuesare specified. Defaults totrue.isAbsoluteWhether to generate an absolute URL containing additionally http(s):// and the domain of the App. Defaults tofalseisHttpsSet it totrueto generate an https URL,falseto generate an http URL orautoto auto-detect based on the current request.
Returns: A string containing the URL.
Last updated
Was this helpful?