add getowner function to OC_Calendar_Object
This commit is contained in:
parent
48f42176cd
commit
0ae088a50a
|
@ -816,4 +816,9 @@ class OC_Calendar_Object{
|
||||||
|
|
||||||
return $vcalendar;
|
return $vcalendar;
|
||||||
}
|
}
|
||||||
|
public static function getowner($id){
|
||||||
|
$event = self::find($id);
|
||||||
|
$cal = OC_Calendar_Calendar::find($event['calendarid']);
|
||||||
|
return $cal['userid'];
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue