diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-06-11 17:15:50 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-06-11 17:15:50 +0200 |
commit | 009c4c9045f7df0f497682bbee6e55b7664f36e2 (patch) | |
tree | 114c269fce80eeb1fff17249cc4ef5ae4276d13f /apps | |
parent | 2dd84373c15cd2f696aaf1ea51028cdcb9caba56 (diff) | |
download | nextcloud-server-009c4c9045f7df0f497682bbee6e55b7664f36e2.tar.gz nextcloud-server-009c4c9045f7df0f497682bbee6e55b7664f36e2.zip |
add function isrepeating to OC_Calendar_Object class and change OC_Calendar_Object::getUTCforMDB from protected to public
Diffstat (limited to 'apps')
-rw-r--r-- | apps/calendar/lib/object.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index b21ab3fe007..ba3fa814f36 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -300,7 +300,7 @@ class OC_Calendar_Object{ * This function creates a date string that can be used by MDB2. * Furthermore it converts the time to UTC. */ - protected static function getUTCforMDB($datetime){ + public static function getUTCforMDB($datetime){ return date('Y-m-d H:i', $datetime->format('U') - $datetime->getOffset()); } @@ -802,4 +802,9 @@ class OC_Calendar_Object{ $event = self::find($id); return $event['calendarid']; } + + public static function isrepeating($id){ + $event = self::find($id); + return ($event['repeating'] == 1)?true:false; + } } |