Documentation
CALENDAR
usage
<GET>
<CALENDAR>
<START>SQL date</START>
<END>SQL date</END>
[<QUERY>...NQL operations...</QUERY>]
</CALENDAR>
</GET>
paramètres
START: the date where the calendar should start
END: the date where the calendar should end
QUERY: a set of NQL commands you want to see executed foreach day in the calendar. Use the date keywords to operate a command as if today was the day of the calendar.
retourne
A piece of XML representing a calendar structured by Year > Month > Week > Day. Foreach day is returned the result of the NQL commands contained in QUERY.
This command was implemented in order to ease the programming of HTML/Flash date selector.
The weeks are “padded” with ghost days in order to allow the construction of month calendar with a week on each line.
<WEEK ID="9">
<FILLING ID="26" weekday="1" />
<FILLING ID="27" weekday="2" />
<FILLING ID="28" weekday="3" />
<DAY ID="01" weekday="4" />
<DAY ID="02" weekday="5" />
<DAY ID="03" weekday="6" />
<DAY ID="04" weekday="0" />
</WEEK>
exemples
<GET>
<CALENDAR>
<START>2007-10-01</START>
<END>2007-11-15</END>
</CALENDAR>
</GET>
returns a simple calendar starting on the 1st of october and ending on the 15th of november.
<GET>
<CALENDAR>
<START>2007-10-01</START>
<END>2007-10-31</END>
<QUERY>
<SEARCH>
<MEDIA>
<INFO>
<MEDIATYPE>Show</MEDIATYPE>
<EVENTSTART>today</EVENTSTART>
</INFO>
</MEDIA>
<RETURN>
<INFO/>
<DESCRIPTION><TITLE/></DESCRIPTION>
</RETURN>
</SEARCH>
</QUERY>
</CALENDAR>
</GET>
returns a calendar of november with foreach day the shows happening at this date.