/**
* Add a category to the appointment
*
- * TODO
- *
* @param string $category
*/
public function addCategory($category)
{
-
+ $this->categories[] = $category;
}
- public function getCategory()
+ public function getCategories()
{
-
+ return $this->categories;
}
/**
$this->addAttendee($attendee->email, Kronolith::PART_NONE, Kronolith::RESPONSE_NONE, $attendee->name);
}
+ /* Categories (Tags) */
+ $tags = $message->getCategories();
+ foreach ($tags as $tag) {
+ $this->tags[] = Horde_String::convertCharset($tag, 'utf-8', Horde_Nls::getCharset());
+ }
+
/* Flag that we are initialized */
$this->initialized = true;
}
/* Reminder */
$message->setReminder($this->alarm);
+ /* Categories (tags) */
+ foreach ($this->tags as $tag) {
+ $message->addCategory(Horde_String::convertCharset($tag, Horde_Nls::getCharset(), 'utf-8'));
+ }
+
return $message;
}