From 0ae088a50a42fa73b2afb87d0fe80dea2129c430 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Wed, 22 Feb 2012 10:42:01 +0100 Subject: [PATCH] add getowner function to OC_Calendar_Object --- apps/calendar/lib/object.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index cbb1badf802..a7ee5bd1081 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -816,4 +816,9 @@ class OC_Calendar_Object{ return $vcalendar; } + public static function getowner($id){ + $event = self::find($id); + $cal = OC_Calendar_Calendar::find($event['calendarid']); + return $cal['userid']; + } } \ No newline at end of file