ePages 6.14.0 - DE_EPAGES/Calendar/API/TLE/CalendarHandler.pm

Package DE_EPAGES::Calendar::API::TLE::CalendarHandler

Functions

BusinessHourWeek

BusinessHourWeek

Loops all 7 days of the week and provides information about opening and closing hours of each day.

Syntax
#BusinessHourWeek(#Calendar, #IsOddWeek)
Example
#LOOP(#BusinessHourWeek(#Calendar.Object, #IsOddWeek))
  #Abbreviation:
  #IF(#OpenDuskTillDawn)
    Open 24 hours.
  #ELSE
    We're open from #OpenMorning[time] to #CloseMorning[time] in the morning
    anf from #OpenAfternoon[time] to #CloseAfternoon[time] in the afternoon.
  #ENDIF
  <br />
#ENDLOOP
Input
#Calendar (DE_EPAGES::Calendar::API::Object::Calendar)
calendar object
#IsOddWeek (boolean)
(optional, default=0) true if the week number is odd