You are here

public function RoomsEvent::endYear in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Returns the booking end year.

Parameters

string $format: The format string to return.

Return value

string The year formatted string.

Overrides RoomsEventInterface::endYear

6 calls to RoomsEvent::endYear()
BookingEvent::formatJson in modules/rooms_availability/includes/rooms_availability.booking_event.inc
Returns event in a format amenable to FullCalendar display or generally sensible JSON.
PricingEvent::formatJson in modules/rooms_pricing/includes/rooms_pricing.pricing_event.inc
Returns event in a format amenable to FullCalendar display or generally sensible json.
RoomsEvent::sameMonth in includes/rooms.event.inc
Checks if the event starts and ends in the same month.
RoomsEvent::sameYear in includes/rooms.event.inc
Checks if the event starts and ends in the same year.
RoomsEvent::transformToMonthlyEvents in includes/rooms.event.inc
Takes a single event that spans several months and transforms it to monthly events - this assumes that the event is contained within a year

... See full list

File

includes/rooms.event.inc, line 63

Class

RoomsEvent

Code

public function endYear($format = 'Y') {
  return $this->end_date
    ->format($format);
}