add class for repeating events
This commit is contained in:
parent
9c520c70a8
commit
f75a7c084f
1 changed files with 41 additions and 0 deletions
41
apps/calendar/lib/repeat.php
Normal file
41
apps/calendar/lib/repeat.php
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
/**
|
||||
* Copyright (c) 2012 Georg Ehrke <ownclouddev@georgswebsite.de>
|
||||
* 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();
|
||||
}
|
Loading…
Reference in a new issue