4.13.
OwsRequestObj Class
Up one level
Constructor, members, and methods.
- Constant names and class member variable names are case-sensitive in PHP.
- Several MapScript functions (all those that access files in the back end such as ms_newMapObj(), drawMap(), etc.) will affect the value of the current working directory (CWD) in the PHP environment. This will be fixed eventually but in the meantime you should be careful about these side-effects.
Constructor:
request = ms_newOwsrequestObj();
Create a new ows request object.
Members:
int numparams
Number of parameters in the request object. Read only.
Methods:
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.
int setparameter(string name, string value)
Set a request parameter. For example :
$request->setparameter('REQUEST', 'GetMap');
string getname(int index)
Return the name of the parameter at *index* in the request's array
of parameter names.
string getvalue(int index)
Return the value of the parameter at *index* in the request's array
of parameter values.
string getvaluebyname(string name)
Return the value associated with the parameter *name*.