add getowner function to OC_Calendar_Object

This commit is contained in:
Georg Ehrke 2012-02-22 10:42:01 +01:00
parent 48f42176cd
commit 0ae088a50a
1 changed files with 5 additions and 0 deletions

View File

@ -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'];
}
}