setParameter

Set a parameter that will be included in the call to the eContext API.

Description

public Url Url::setParameter($key, $value)

Parameters

$key
The name of the Parameters to set.
$value
The value of the parameter

Return Values

Returns the eContext\Classify\Url object for method chaining

Examples

Example #1

Set "flags" parameter to true

$client = new eContext\Client(ECONTEXT_USERNAME, ECONTEXT_PASSWORD);
$classify = new eContext\Url($client);
$classify->setParameter('entities', true);