| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod CreateSubscriptions ( |  |   LibCal_Calendars subscribers_i, |  |   LibCal_LeadingParticipations subscribeTo_i, |  |   Boolean useLeadingPeriod_i, |  |   String periodType_i, |  |   Date startOfPeriod_i, |  |   Number nrOfOccurrences_i, |  |   Date endOfPeriod_i |  | ) |  | { |  |   Description: 'Create new  subscriptions for a set of subscribers.' |  |   TextBody: |  |   [* |  |     // Create a new subscriptions for each subscriber. |  |     traverse( subscribers_i, Elements, subscriber ) |  |     { |  |       traverse( subscribeTo_i, Elements, leadPart ) |  |       { |  |         subscription := subscriber.SubscribeToEvent( leadPart.Event() ); |  |         subscription.UpdateSubscription( useLeadingPeriod_i, leadPart.IsRecurring(), periodType_i, startOfPeriod_i, nrOfOccurrences_i, endOfPeriod_i ); |  |       } |  |     } |  |   *] |  |   InterfaceProperties { Accessibility: 'Module' } |  | } | 
 |