Documentation

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

$_intervals

Intervals

protected array<string|int, mixed> $_intervals

$_storeIds

Array of store ids

protected array<string|int, mixed> $_storeIds

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
int

getPeriods()

Return date periods

public getPeriods() : array<string|int, mixed>
Return values
array<string|int, mixed>

getReportFull()

get report full

public getReportFull(string $from, string $to) : Collection
Parameters
$from : string
$to : string
Return values
Collection

getSize()

Get size

public getSize() : int
Return values
int

getStoreIds()

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
$this

setInterval()

Set interval

public setInterval(DateTime $from, DateTime $to) : $this
Parameters
$from : DateTime
$to : DateTime
Return values
$this

setPageSize()

Set page size

public setPageSize(int $size) : $this
Parameters
$size : int
Return values
$this

setPeriod()

Set period

public setPeriod(int $period) : $this
Parameters
$period : int
Return values
$this

setStoreIds()

Set store ids

public setStoreIds(array<string|int, mixed> $storeIds) : $this
Parameters
$storeIds : array<string|int, mixed>
Return values
$this

timeShift()

Retrieve time shift

public timeShift(string $datetime) : string
Parameters
$datetime : string
Return values
string
On this page

Search results