Метод |
Описание |
|
dateIsEarlier ( DateTime $date ) : boolean |
Checks if the date supplied starts earlier than our event |
|
dateIsInRange ( DateTime $date ) : boolean |
Checks if date supplied is in range of event |
|
dateIsLater ( DateTime $date ) : boolean |
Checks if the date supplied ends after our event ends |
|
diff ( ) |
|
|
endDateToString ( $format = 'Y-m-d H:i' ) : mixed |
Utility function to always give us a standard format for viewing the end date. |
|
endDay ( $format = 'j' ) |
|
|
endHour ( $format = 'G' ) |
|
|
endMinute ( $format = 'i' ) |
|
|
endMonth ( $format = 'n' ) |
|
|
endMonthDate ( DateTime $date ) |
{@inheritdoc) |
|
endWeek ( $format = 'W' ) |
|
|
endYear ( $format = 'Y' ) |
|
|
endsLater ( DateTime $date ) : boolean |
Checks if our event ends after the date supplied |
|
getEndDate ( ) : DateTime |
Returns the end date. |
|
getStartDate ( ) : DateTime |
Returns the start date. |
|
getUnitId ( ) : integer |
Returns the unit id. |
|
getValue ( ) : integer |
Returns the value. |
|
isFirstDay ( $date ) |
|
|
isFirstHour ( $date ) |
|
|
isFirstMonth ( $date ) |
|
|
isLastMonth ( $date ) |
|
|
isSameDay ( ) |
|
|
isSameHour ( ) |
|
|
isSameMonth ( ) |
|
|
isSameYear ( ) |
|
|
itemize ( EventItemizer $itemizer ) : array |
Transforms the event in a breakdown of days, hours and minutes with associated states. |
|
overlaps ( DateTime $start, DateTime $end ) : boolean |
Returns true if the event overlaps at all with the time period within
the start and end time. |
|
saveEvent ( Roomify\Bat\Store\Store $store, string $granularity = AbstractEvent::BAT_HOURLY ) : boolean |
Saves an event using the Store object |
|
setEndDate ( DateTime $end_date ) |
Set the end date. |
|
setStartDate ( DateTime $start_date ) |
Set the start date. |
|
setUnitId ( integer $unit_id ) |
Set the unit id. |
|
setValue ( integer $value ) |
Set the value. |
|
startDateToString ( $format = 'Y-m-d H:i' ) : mixed |
Utility function to always give us a standard format for viewing the start date. |
|
startDay ( $format = 'j' ) |
|
|
startHour ( $format = 'G' ) |
|
|
startMinute ( $format = 'i' ) |
|
|
startMonth ( $format = 'n' ) |
|
|
startWeek ( $format = 'W' ) |
|
|
startYear ( $format = 'Y' ) |
|
|
startsEarlier ( DateTime $date ) : boolean |
Checks if our event starts earlier than the date supplied |
|
toJson ( Roomify\Bat\EventFormatter\EventFormatter $event_formatter ) |
|
|