Ken Pooley wrote:
>
> I have been starting to look at the calendar portions of midgard and wanted
> to ask around about the functions and their implications....
> How much can I do to a query? It seems clear I can ask for all of the
> calendar events, is the fact I set a date what all that differentiates a
> story as a calendar record?
There is in fact nothing at all that differentiates it. You can set the
calendar related fields but these can be used just as validly for
publish
and perish dates for an article.
> Can I ask more more complex date ranges like "today" through 15 days from
> now? or 15 days ago until "today" or 15 days ago until 15 days from now?
> I looked at the function refernce and the demo site but didn't quite see
> what was making the comparisons.....
The manual describes the functions but is wrong about the parameters.
Here's
what's right:
mgd_list_topic_calendar_all($topic, $start, $range, $sort, $type)
List articles by date range.
$start is the unix timestamp format (as returned by
the PHP function time()) of the startdate/time, defaults to the epoch
(beginning
of time AFA unix IC).
$range is the number of days to span, defaults to end of time.
$sort is a sort specification as outlined in
http://www.midgard-project.org/manual/function.list-topic-articles.html,
defaults to creation date
$type limits the returned articles to those that have their type field
set
to the specified value, defaults to no type limit.
the _fast function does exactly the same but does not return author
information
other than the author id.
Note that these two functions return all articles under a topic tree,
not just the
topic ID passed.
emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]