From f75a7c084f0b52cd3e6fa0123ea753eec74b154b Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 1 May 2012 16:16:12 +0200 Subject: [PATCH] add class for repeating events --- apps/calendar/lib/repeat.php | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 apps/calendar/lib/repeat.php diff --git a/apps/calendar/lib/repeat.php b/apps/calendar/lib/repeat.php new file mode 100644 index 0000000000..fe2ba7cfa8 --- /dev/null +++ b/apps/calendar/lib/repeat.php @@ -0,0 +1,41 @@ + + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ +/* + * This class manages the caching of repeating events + * Events will be cached for the current year ± 5 years + */ +class OC_Calendar_Repeat{ + /* + * @brief returns the cache of an event + */ + public static function get(); + /* + * @brief returns the cache of all events of a calendar + */ + public static function getcalendar(); + /* + * @brief generates the cache the first time + */ + public static function generate(); + /* + * @brief updates an event that is already cached + */ + public static function update(); + /* + * @brief checks if an event is already cached + */ + public static function is_cached(); + /* + * @brief removes the cache of an event + */ + public static function clean(); + /* + * @brief removes the cache of all events of a calendar + */ + public static function cleancalendar(); +} \ No newline at end of file