Open Journal Systems  3.3.0
Guzzle\Http\QueryAggregator\DuplicateAggregator Class Reference
Inheritance diagram for Guzzle\Http\QueryAggregator\DuplicateAggregator:
Guzzle\Http\QueryAggregator\QueryAggregatorInterface

Public Member Functions

 aggregate ($key, $value, QueryString $query)
 

Detailed Description

Does not aggregate nested query string values and allows duplicates in the resulting array

Example: http://test.com?q=1&q=2

Definition at line 12 of file DuplicateAggregator.php.

Member Function Documentation

◆ aggregate()

Guzzle\Http\QueryAggregator\DuplicateAggregator::aggregate (   $key,
  $value,
QueryString  $query 
)

Aggregate multi-valued parameters into a flattened associative array

Parameters
string$keyThe name of the query string parameter
array$valueThe values of the parameter
QueryString$queryThe query string that is being aggregated
Returns
array Returns an array of the combined values

Implements Guzzle\Http\QueryAggregator\QueryAggregatorInterface.

Definition at line 14 of file DuplicateAggregator.php.

References Guzzle\Http\QueryString\encodeValue(), and Guzzle\Http\QueryString\isUrlEncoding().


The documentation for this class was generated from the following file: