Mura CMS 6.1

mura.content
Class contentIntervalManager

railo-context.Component
        extended by mura.cfobject
            extended by mura.content.contentIntervalManager

public class contentIntervalManager
extends cfobject

Method Summary
 query apply(query query, numeric From, numeric To)
          Gets the events between the given dates (inclusive)
 any applyByMenuTypeAndDate([any query], [any menuType], [any menuDate])
 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
 
Methods inherited from class mura.cfobject
commitTracePoint, deleteMethod, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getPlugin, getPluginManager, getServiceFactory, getValue, init, initTracePoint, injectMethod, invokeMethod, removeValue, setValue, valueExists
 
Methods inherited from class railo-context.Component
 

Method Detail

apply

public query apply(query query, numeric From, numeric To)
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).

applyByMenuTypeAndDate

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

Parameters:
query
menuType
menuDate

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.

Mura CMS 6.1