]> err.no Git - scalable-opengroupware.org/blobdiff - SOGo/UI/Scheduler/UIxAppointmentView.m
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@118 d1b88da0-ebda-0310-925b-ed51d...
[scalable-opengroupware.org] / SOGo / UI / Scheduler / UIxAppointmentView.m
index aadd53bee61e4f34e29d4cc508bbe35f7eae6b5b..45fb80a864fe6aae0301de48158db59a62b26c31 100644 (file)
   [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 {