mura.content

Class contentIntervalManager

lucee.Component
    extended by mura.cfobject
      extended by mura.content.contentIntervalManager

This provides content interval service level logic functionality

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    query apply(query query, date From, date To, date current='0')
         Gets the events between the given dates (inclusive).
    any applyByMenuTypeAndDate([any query], [any menuType], [any menuDate])
    any deserializeInterval([any interval], [any displayStart], [any displayStop])
    any findConflicts([any content])
    mura.content.datetime GetLastDayOfWeekOfMonth(numeric year, numeric month, numeric DayOfWeek)
         Returns the date of the last given weekday of the given month.
    any GetNthDayOfMonth(numeric year, numeric Month, numeric DayOfWeek, [numeric Nth='1'])
         I return the Nth instance of the given day of the week for the given month (ex.
    any isAllDay([any start], [any stop])
     
    Methods inherited from class mura.cfobject
    commitTracePoint, convertTimezone, deleteMethod, get, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getFeed, getHTTPAttrs, getHTTPService, getJavaTimezone, getPlugin, getPluginManager, getQueryAttrs, getQueryService, getServiceFactory, getSession, getValue, hasCustomDatasource, init, initTracePoint, inject, injectMethod, invokeMethod, mixin, parseDateArg, removeValue, set, setValue, valueExists
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    apply

    public query apply(query query, date From, date To, date current='0')

    Gets the events between the given dates (inclusive). Returns a structure that has both the event query and event index.

    Parameters:
    query - The Query the has the items that may need intervals applied
    From - The From date for our date span (inclusive).
    To - The To date for our date span (inclusive).
    current - The From date for our date span (inclusive).

    applyByMenuTypeAndDate

    public any applyByMenuTypeAndDate([any query], [any menuType], [any menuDate])

    Parameters:
    query
    menuType
    menuDate

    deserializeInterval

    public any deserializeInterval([any interval], [any displayStart], [any displayStop])

    Parameters:
    interval
    displayStart
    displayStop

    findConflicts

    public any findConflicts([any content])

    Parameters:
    content

    GetLastDayOfWeekOfMonth

    public mura.content.datetime GetLastDayOfWeekOfMonth(numeric year, numeric month, numeric DayOfWeek)

    Returns the date of the last given weekday of the given month.

    Parameters:
    year - Any date in the given month we are going to be looking at.
    month - Any date in the given month we are going to be looking at.
    DayOfWeek - The day of the week of which we want to find the last monthly occurence.

    GetNthDayOfMonth

    public any GetNthDayOfMonth(numeric year, numeric Month, numeric DayOfWeek, [numeric Nth='1'])

    I return the Nth instance of the given day of the week for the given month (ex. 2nd Sunday of the month).

    Parameters:
    year - I am the month for which we are gathering date information.
    Month - I am the month for which we are gathering date information.
    DayOfWeek - I am the day of the week (1-7) that we are locating.
    Nth - I am the Nth instance of the given day of the week for the given month.

    isAllDay

    public any isAllDay([any start], [any stop])

    Parameters:
    start
    stop