ReportEarningsByDatesData
extends ReportByDatesData
in package
Table of Contents
- $atts : array<string|int, mixed>
- $range : string|array<string|int, mixed>
- $dataFilters : array<string|int, mixed>
- $dataTypes : array<string|int, mixed>
- $dateFrom : string
- $datesPeriod : DatePeriod
- $dateTo : string
- __construct() : mixed
- filterBookingsByDates() : mixed
- getAtts() : array<string|int, mixed>
- getDataFilters() : array<string|int, mixed>
- getDataTypes() : array<string|int, mixed>
- getDateFrom() : string
- getDatesArray() : array<string|int, mixed>
- getDatesPeriod() : DatePeriod
- getDateTo() : string
- getRange() : string|array<string|int, mixed>
- getReportData() : 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
- iterateBookings() : array<string|int, mixed>
- prepareBooking() : array<string|int, mixed>
- prepareRequestParams() : array<string|int, mixed>
- requestBookings() : array<string|int, mixed>
- requestReportData() : array<string|int, mixed>
Properties
$atts
public
array<string|int, mixed>
$atts
$range
public
string|array<string|int, mixed>
$range
$dataFilters
protected
array<string|int, mixed>
$dataFilters
$dataTypes
protected
array<string|int, mixed>
$dataTypes
$dateFrom
protected
string
$dateFrom
$datesPeriod
protected
DatePeriod
$datesPeriod
$dateTo
protected
string
$dateTo
Methods
__construct()
public
__construct([array<string|int, mixed> $atts = array() ]) : mixed
Parameters
- $atts : array<string|int, mixed> = array()
Return values
mixed —filterBookingsByDates()
public
filterBookingsByDates(mixed $where) : mixed
Parameters
- $where : mixed
Return values
mixed —getAtts()
public
getAtts() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDataFilters()
public
getDataFilters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDataTypes()
public
getDataTypes() : 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> —getReportData()
public
getReportData() : array<string|int, mixed>
Return values
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
Return values
DatePeriod —iterateBookings()
private
iterateBookings(array<string|int, mixed> $bookingsForIteration) : array<string|int, mixed>
Parameters
- $bookingsForIteration : array<string|int, mixed>
Return values
array<string|int, mixed> —prepareBooking()
private
prepareBooking(Booking $booking) : array<string|int, mixed>
Parameters
- $booking : Booking
Return values
array<string|int, mixed> —prepareRequestParams()
private
prepareRequestParams([array<string|int, mixed> $atts = array() ]) : array<string|int, mixed>
Parameters
- $atts : array<string|int, mixed> = array()
Return values
array<string|int, mixed> —requestBookings()
private
requestBookings(array<string|int, mixed> $args) : array<string|int, mixed>
Parameters
- $args : array<string|int, mixed>
Return values
array<string|int, mixed> —requestReportData()
private
requestReportData() : array<string|int, mixed>