Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getPartnerRevenue example
$this
->
send
(
array_values
(
$referrer
)
,
(int)
$this
->
Request
(
)
->
getParam
(
'limit', 25
)
)
;
}
/** * @return void */
public
function
getPartnerRevenueAction
(
)
{
$result
=
$this
->
getRepository
(
)
->
getPartnerRevenue
(
(int)
$this
->
Request
(
)
->
getParam
(
'start', 0
)
,
$this
->
getLimit
(
)
,
$this
->
getFromDate
(
)
,
$this
->
getToDate
(
)
)
;
$data
=
$result
->
getData
(
)
;
foreach
(
$data
as
&
$row
)
{
if
(
empty
(
$row
[
'partner'
]
)
)
{
$row
[
'partner'
]
=
$row
[
'trackingCode'
]
;
}