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