OwsrequestObj
final class OwsrequestObj (View source)
Properties
int | $numparams | (read-only) | |
int | $type | (read-only): MS_GET_REQUEST or MS_POST_REQUEST |
Methods
request = ms_newOwsrequestObj(); Create a new ows request object.
Add a request parameter, even if the parameter key was previousely set.
Return the name of the parameter at index in the request's array of parameter names.
Return the value of the parameter at index in the request's array of parameter values.
Return the value associated with the parameter name.
Initializes the OWSRequest object from the cgi environment variables REQUEST_METHOD, QUERY_STRING and HTTP_COOKIE. Returns the number of name/value pairs collected.
Set a request parameter. For example : .. code-block:: php $request->setparameter('REQUEST', 'GetMap');
Details
final
__construct()
request = ms_newOwsrequestObj(); Create a new ows request object.
final int
addParameter(string $name, string $value)
Add a request parameter, even if the parameter key was previousely set.
This is useful when multiple parameters with the same key are required. For example : .. code-block:: php $request->addparameter('SIZE', 'x(100)'); $request->addparameter('SIZE', 'y(100)');
final string
getName(int $index)
Return the name of the parameter at index in the request's array of parameter names.
final string
getValue(int $index)
Return the value of the parameter at index in the request's array of parameter values.
final string
getValueByName(string $name)
Return the value associated with the parameter name.
final int
loadParams()
Initializes the OWSRequest object from the cgi environment variables REQUEST_METHOD, QUERY_STRING and HTTP_COOKIE. Returns the number of name/value pairs collected.
final int
setParameter(string $name, string $value)
Set a request parameter. For example : .. code-block:: php $request->setparameter('REQUEST', 'GetMap');