Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setQueryArray example
else
{
$uri
->
addQuery
(
$this
->groups
[
$group
]
[
'pageSelector'
]
,
$page
)
;
}
if
(
$this
->only
)
{
$query
=
array_intersect_key
(
$_GET
,
array_flip
(
$this
->only
)
)
;
if
(
!
$segment
)
{
$query
[
$this
->groups
[
$group
]
[
'pageSelector'
]
]
=
$page
;
}
$uri
->
setQueryArray
(
$query
)
;
}
return
(
$returnObject
=== true
)
?
$uri
: URI::
createURIString
(
$uri
->
getScheme
(
)
,
$uri
->
getAuthority
(
)
,
$uri
->
getPath
(
)
,
$uri
->
getQuery
(
)
,
$uri
->
getFragment
(
)
)
;
}