ReportByDatesData
extends AbstractReportsData
in package
Table of Contents
- $atts : array<string|int, mixed>
- $range : string|array<string|int, mixed>
- $dateFrom : string
- $datesPeriod : DatePeriod
- $dateTo : string
- __construct() : mixed
- getAtts() : array<string|int, mixed>
- getDateFrom() : string
- getDatesArray() : array<string|int, mixed>
- getDatesPeriod() : DatePeriod
- getDateTo() : string
- getRange() : string|array<string|int, mixed>
- setAttr() : mixed
- setDateFrom() : mixed
- setDateTo() : mixed
- setRange() : mixed
- getCustomPeriod() : mixed
- getDayPeriod() : DatePeriod
- getLastQuarterPeriod() : mixed
- getLastYearPeriod() : mixed
- getMonthPeriod() : mixed
- getStartEndDates() : array<string|int, mixed>
- getThirtyDaysPeriod() : mixed
- getThisQuarterPeriod() : mixed
- getThisYearPeriod() : mixed
- getWeekPeriod() : DatePeriod
Properties
$atts
public
array<string|int, mixed>
$atts
$range
public
string|array<string|int, mixed>
$range
$dateFrom
protected
string
$dateFrom
$datesPeriod
protected
DatePeriod
$datesPeriod
$dateTo
protected
string
$dateTo
Methods
__construct()
public
__construct(array<string|int, mixed> $atts) : mixed
Parameters
- $atts : array<string|int, mixed>
Return values
mixed —getAtts()
public
getAtts() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDateFrom()
public
getDateFrom() : string
Return values
string —getDatesArray()
public
getDatesArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDatesPeriod()
public
getDatesPeriod() : DatePeriod
Return values
DatePeriod —getDateTo()
public
getDateTo() : string
Return values
string —getRange()
public
getRange() : string|array<string|int, mixed>
Return values
string|array<string|int, mixed> —setAttr()
public
setAttr(string $key, string|array<string|int, mixed> $value) : mixed
Parameters
- $key : string
- $value : string|array<string|int, mixed>
Return values
mixed —setDateFrom()
public
setDateFrom(string $dateFrom) : mixed
Parameters
- $dateFrom : string
-
Y-m-d
Return values
mixed —setDateTo()
public
setDateTo(string $dateTo) : mixed
Parameters
- $dateTo : string
-
Y-m-d
Return values
mixed —setRange()
public
setRange(string $range) : mixed
Parameters
- $range : string
Return values
mixed —getCustomPeriod()
protected
getCustomPeriod() : mixed
Return values
mixed —getDayPeriod()
protected
getDayPeriod(DateTime $baseDate) : DatePeriod
Parameters
- $baseDate : DateTime
Return values
DatePeriod —getLastQuarterPeriod()
protected
getLastQuarterPeriod(DateTime $baseDate) : mixed
Parameters
- $baseDate : DateTime
Return values
mixed —getLastYearPeriod()
protected
getLastYearPeriod(DateTime $baseDate) : mixed
Parameters
- $baseDate : DateTime
Return values
mixed —getMonthPeriod()
protected
getMonthPeriod(DateTime $baseDate) : mixed
Parameters
- $baseDate : DateTime
Return values
mixed —getStartEndDates()
protected
getStartEndDates(DatePeriod $period) : array<string|int, mixed>
Parameters
- $period : DatePeriod
Return values
array<string|int, mixed> —[\DateTime StartDate, \DateTime EndDate]
getThirtyDaysPeriod()
protected
getThirtyDaysPeriod(DateTime $baseDate) : mixed
Parameters
- $baseDate : DateTime
Return values
mixed —getThisQuarterPeriod()
protected
getThisQuarterPeriod(DateTime $baseDate) : mixed
Parameters
- $baseDate : DateTime
Return values
mixed —getThisYearPeriod()
protected
getThisYearPeriod(DateTime $baseDate) : mixed
Parameters
- $baseDate : DateTime
Return values
mixed —getWeekPeriod()
protected
getWeekPeriod(DateTime $baseDate) : DatePeriod
Parameters
- $baseDate : DateTime