summaryrefslogtreecommitdiffstats
path: root/apps/calendar/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <ownclouddev@georgswebsite.de>2012-02-22 10:42:01 +0100
committerGeorg Ehrke <ownclouddev@georgswebsite.de>2012-02-22 10:42:01 +0100
commit0ae088a50a42fa73b2afb87d0fe80dea2129c430 (patch)
tree7dedf9170bee2fceeb079a5d631dceafa594d587 /apps/calendar/lib
parent48f42176cdc1d75f2b9cd7b5c6d0cc4ee9050ced (diff)
downloadnextcloud-server-0ae088a50a42fa73b2afb87d0fe80dea2129c430.tar.gz
nextcloud-server-0ae088a50a42fa73b2afb87d0fe80dea2129c430.zip
add getowner function to OC_Calendar_Object
Diffstat (limited to 'apps/calendar/lib')
-rw-r--r--apps/calendar/lib/object.php5
1 files changed, 5 insertions, 0 deletions
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