Mage_Reports_Model_Resource_Report_Collection
in package
Table of Contents
Properties
- $_from : DateTime
- From value
- $_intervals : array<string|int, mixed>
- Intervals
- $_model : Mage_Reports_Model_Report
- Model object
- $_pageSize : int
- Page size
- $_period : int
- Report period
- $_storeIds : array<string|int, mixed>
- Array of store ids
- $_to : DateTime
- To value
Methods
- getIntervals() : array<string|int, mixed>
- Get intervals
- getPageSize() : int
- Get page size
- getPeriods() : array<string|int, mixed>
- Return date periods
- getReport() : Collection
- Get report
- getReportFull() : Collection
- get report full
- getSize() : int
- Get size
- getStoreIds() : array<string|int, mixed>
- Get store ids
- initReport() : $this
- Init report
- setInterval() : $this
- Set interval
- setPageSize() : $this
- Set page size
- setPeriod() : $this
- Set period
- setStoreIds() : $this
- Set store ids
- timeShift() : string
- Retrieve time shift
- _construct() : mixed
Properties
$_from
From value
protected
DateTime
$_from
$_intervals
Intervals
protected
array<string|int, mixed>
$_intervals
$_model
Model object
protected
Mage_Reports_Model_Report
$_model
$_pageSize
Page size
protected
int
$_pageSize
$_period
Report period
protected
int
$_period
$_storeIds
Array of store ids
protected
array<string|int, mixed>
$_storeIds
$_to
To value
protected
DateTime
$_to
Methods
getIntervals()
Get intervals
public
getIntervals() : array<string|int, mixed>
Return values
array<string|int, mixed>getPageSize()
Get page size
public
getPageSize() : int
Return values
intgetPeriods()
Return date periods
public
getPeriods() : array<string|int, mixed>
Return values
array<string|int, mixed>getReport()
Get report
public
getReport(string $from, string $to) : Collection
Parameters
- $from : string
- $to : string
Return values
CollectiongetReportFull()
get report full
public
getReportFull(string $from, string $to) : Collection
Parameters
- $from : string
- $to : string
Return values
CollectiongetSize()
Get size
public
getSize() : int
Return values
intgetStoreIds()
Get store ids
public
getStoreIds() : array<string|int, mixed>
Return values
array<string|int, mixed>initReport()
Init report
public
initReport(string $modelClass) : $this
Parameters
- $modelClass : string
Return values
$thissetInterval()
Set interval
public
setInterval(DateTime $from, DateTime $to) : $this
Parameters
- $from : DateTime
- $to : DateTime
Return values
$thissetPageSize()
Set page size
public
setPageSize(int $size) : $this
Parameters
- $size : int
Return values
$thissetPeriod()
Set period
public
setPeriod(int $period) : $this
Parameters
- $period : int
Return values
$thissetStoreIds()
Set store ids
public
setStoreIds(array<string|int, mixed> $storeIds) : $this
Parameters
- $storeIds : array<string|int, mixed>
Return values
$thistimeShift()
Retrieve time shift
public
timeShift(string $datetime) : string
Parameters
- $datetime : string
Return values
string_construct()
protected
_construct() : mixed