Open Journal Systems  3.3.0
DuplicateAggregator.php
1 <?php
2 
4 
6 
13 {
14  public function aggregate($key, $value, QueryString $query)
15  {
16  if ($query->isUrlEncoding()) {
17  return array($query->encodeValue($key) => array_map(array($query, 'encodeValue'), $value));
18  } else {
19  return array($key => $value);
20  }
21  }
22 }
Guzzle\Http\QueryAggregator
Definition: CommaAggregator.php:3
Guzzle\Http\QueryString
Definition: QueryString.php:14
Guzzle\Http\QueryAggregator\QueryAggregatorInterface
Definition: QueryAggregatorInterface.php:10
Guzzle\Http\QueryAggregator\DuplicateAggregator
Definition: DuplicateAggregator.php:12
Guzzle\Http\QueryAggregator\DuplicateAggregator\aggregate
aggregate($key, $value, QueryString $query)
Definition: DuplicateAggregator.php:14
Guzzle\Http\QueryString\isUrlEncoding
isUrlEncoding()
Definition: QueryString.php:156
Guzzle\Http\QueryString\encodeValue
encodeValue($value)
Definition: QueryString.php:246