Open Journal Systems
3.3.0
CommaAggregator.php
1
<?php
2
3
namespace
Guzzle\Http\QueryAggregator
;
4
5
use
Guzzle\Http\QueryString
;
6
10
class
CommaAggregator
implements
QueryAggregatorInterface
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
plugins
paymethod
paypal
lib
vendor
guzzle
guzzle
src
Guzzle
Http
QueryAggregator
CommaAggregator.php
Generated on Fri Aug 28 2020 14:51:09 for Open Journal Systems by
1.8.17