final class OwsrequestObj (View source)

Properties

int $numparams (read-only)
int $type

(read-only): MS_GET_REQUEST or MS_POST_REQUEST

Methods

__construct()

request = ms_newOwsrequestObj(); Create a new ows request object.

int
addParameter(string $name, string $value)

Add a request parameter, even if the parameter key was previousely set.

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.

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 : .. 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)');

Parameters

string $name
string $value

Return Value

int

final string getName(int $index)

Return the name of the parameter at index in the request's array of parameter names.

Parameters

int $index

Return Value

string

final string getValue(int $index)

Return the value of the parameter at index in the request's array of parameter values.

Parameters

int $index

Return Value

string

final string getValueByName(string $name)

Return the value associated with the parameter name.

Parameters

string $name

Return Value

string

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.

Return Value

int

final int setParameter(string $name, string $value)

Set a request parameter. For example : .. code-block:: php $request->setparameter('REQUEST', 'GetMap');

Parameters

string $name
string $value

Return Value

int