RFC: KEP3: Introduction of 'subevent' sub-tag for 'exclusion' from 'recurrence' (revision #10661)
Jeroen van Meeuwen (Kolab Systems)
vanmeeuwen at kolabsys.com
Fri Dec 10 16:47:21 CET 2010
Alain Abbas wrote:
> in case of deletion
> foreach (subevents as exception)
> {
> if (exception.delete == 1 )
> {
> //delete date
> exception.startdate ......
> }
> else
> {
> //modification
> foreach (exception as attribute)
> {
> ///exception
> //general traitment
> //of the exception
> }
> }
> }
> the loop is more simple
>
I think the idea is to (excuse me for the bastardization of the language):
foreach (event.exception as exception => data) {
if (has_child(exception,"subevent")) {
// Go see what is in the subevent
} else {
// no occurence at exception.datetime
}
}
Does that make sense?
Kind regards,
Jeroen van Meeuwen
--
Senior Engineer, Kolab Systems AG
e: vanmeeuwen at kolabsys.com
t: +316 42 801 403
w: http://www.kolabsys.com
pgp: 9342 BF08
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/format/attachments/20101210/9257e462/attachment.html>
More information about the format
mailing list