[super dealloc];
}
-
/* accessors */
-
- (NSString *)tabSelection {
- NSString *selection;
+ NSString *selection;
- selection = [self queryParameterForKey:@"tab"];
- if(! selection)
- selection = @"attributes";
- return selection;
+ selection = [self queryParameterForKey:@"tab"];
+ if (selection == nil)
+ selection = @"attributes";
+ return selection;
}
- (void)setAttendee:(id)_attendee {
- ASSIGN(self->attendee, _attendee);
+ ASSIGN(self->attendee, _attendee);
}
- (id)attendee {
- return self->attendee;
+ return self->attendee;
}
/* backend */
-
- (SOGoAppointment *)appointment {
- if(self->appointment == nil) {
- NSString *iCalString;
-
- iCalString = [[self clientObject] valueForKey:@"iCalString"];
- self->appointment = [[SOGoAppointment alloc] initWithICalString:iCalString];
- }
+ NSString *iCalString;
+
+ if (self->appointment)
return self->appointment;
+
+ iCalString = [[self clientObject] valueForKey:@"iCalString"];
+ self->appointment = [[SOGoAppointment alloc] initWithICalString:iCalString];
+ return self->appointment;
}
- (NSString *)formattedAptStartTime {
- NSCalendarDate *date;
+ NSCalendarDate *date;
- date = [[self appointment] startDate];
- /* TODO: convert this into display timeZone! */
- return [date descriptionWithCalendarFormat:@"%A, %Y-%m-%d %H:%M %Z"];
+ date = [[self appointment] startDate];
+ /* TODO: convert this into display timeZone! */
+ return [date descriptionWithCalendarFormat:@"%A, %Y-%m-%d %H:%M %Z"];
}
- (NSString *)formattedAptEndTime {
- NSCalendarDate *date;
+ NSCalendarDate *date;
- date = [[self appointment] endDate];
- /* TODO: convert this into display timeZone! */
- return [date descriptionWithCalendarFormat:@"%A, %Y-%m-%d %H:%M %Z"];
+ date = [[self appointment] endDate];
+ /* TODO: convert this into display timeZone! */
+ return [date descriptionWithCalendarFormat:@"%A, %Y-%m-%d %H:%M %Z"];
}
/* hrefs */
-
- (NSString *)attributesTabLink {
- return [self completeHrefForMethod:[self ownMethodName]
- withParameter:@"attributes"
- forKey:@"tab"];
+ return [self completeHrefForMethod:[self ownMethodName]
+ withParameter:@"attributes"
+ forKey:@"tab"];
}
- (NSString *)participantsTabLink {