Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getDailyShopVisitors example
$this
->
send
(
$splice
, \
count
(
$data
)
)
;
}
/** * @return void */
public
function
getRatingAction
(
)
{
$shopIds
=
$this
->
getSelectedShopIds
(
)
;
$visitors
=
$this
->
getRepository
(
)
->
getDailyShopVisitors
(
$this
->
getFromDate
(
)
,
$this
->
getToDate
(
)
,
$shopIds
)
;
$visitors
=
array_map
(
'reset',
$visitors
->
getData
(
)
)
;
$orders
=
$this
->
getRepository
(
)
->
getDailyShopOrders
(
$this
->
getFromDate
(
)
,
$this
->
getToDate
(
)
,
$shopIds
)
;