Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\App\Helper\Context $context, \Magento\Reports\Model\ItemFactory $itemFactory) | |
getIntervals ($from, $to, $period=self::REPORT_PERIOD_TYPE_DAY) | |
prepareIntervalsCollection ($collection, $from, $to, $periodType=self::REPORT_PERIOD_TYPE_DAY) | |
![]() | |
__construct (Context $context) | |
isModuleOutputEnabled ($moduleName=null) | |
Data Fields | |
const | REPORT_PERIOD_TYPE_DAY = 'day' |
const | REPORT_PERIOD_TYPE_MONTH = 'month' |
const | REPORT_PERIOD_TYPE_YEAR = 'year' |
Protected Attributes | |
$_itemFactory | |
![]() | |
$_moduleName | |
$_request | |
$_moduleManager | |
$_logger | |
$_urlBuilder | |
$_httpHeader | |
$_eventManager | |
$_remoteAddress | |
$urlEncoder | |
$urlDecoder | |
$scopeConfig | |
$_cacheConfig | |
Additional Inherited Members | |
![]() | |
_getRequest () | |
_getModuleName () | |
_getUrl ($route, $params=[]) | |
__construct | ( | \Magento\Framework\App\Helper\Context | $context, |
\Magento\Reports\Model\ItemFactory | $itemFactory | ||
) |
getIntervals | ( | $from, | |
$to, | |||
$period = self::REPORT_PERIOD_TYPE_DAY |
|||
) |
Retrieve array of intervals
string | $from | |
string | $to | |
string | $period |
Definition at line 57 of file Data.php.
prepareIntervalsCollection | ( | $collection, | |
$from, | |||
$to, | |||
$periodType = self::REPORT_PERIOD_TYPE_DAY |
|||
) |
Add items to interval collection
Collection | $collection | |
string | $from | |
string | $to | |
string | $periodType |
Definition at line 94 of file Data.php.