Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-reports
Model
ResourceModel
Report
Product
Viewed
Collection.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Reports\Model\ResourceModel\Report\Product\Viewed
;
8
13
class
Collection
extends
\Magento\Sales\Model\ResourceModel\Report\Bestsellers\Collection
14
{
20
protected
$tableForPeriod
= [
21
'daily'
=>
\Magento\Reports\Model\ResourceModel\Report\Product\Viewed::AGGREGATION_DAILY
,
22
'monthly'
=>
\Magento\Reports\Model\ResourceModel\Report\Product\Viewed::AGGREGATION_MONTHLY
,
23
'yearly'
=>
\Magento\Reports\Model\ResourceModel\Report\Product\Viewed::AGGREGATION_YEARLY
,
24
];
25
31
protected
function
getOrderedField
()
32
{
33
return
'views_num'
;
34
}
35
}
Magento\Reports\Model\ResourceModel\Report\Product\Viewed\AGGREGATION_MONTHLY
const AGGREGATION_MONTHLY
Definition:
Viewed.php:28
Magento\Reports\Model\ResourceModel\Report\Product\Viewed\Collection\getOrderedField
getOrderedField()
Definition:
Collection.php:31
Magento\Reports\Model\ResourceModel\Report\Product\Viewed\AGGREGATION_DAILY
const AGGREGATION_DAILY
Definition:
Viewed.php:23
Magento\Reports\Model\ResourceModel\Report\Product\Viewed\AGGREGATION_YEARLY
const AGGREGATION_YEARLY
Definition:
Viewed.php:33
Magento\Reports\Model\ResourceModel\Report\Product\Viewed
Definition:
CollectionTest.php:6
Magento\Reports\Model\ResourceModel\Report\Product\Viewed\Collection\$tableForPeriod
$tableForPeriod
Definition:
Collection.php:20
Magento\Reports\Model\ResourceModel\Report\Product\Viewed\Collection
Definition:
Collection.php:13