From: Georg Ehrke Date: Tue, 26 Jun 2012 13:20:29 +0000 (+0200) Subject: add OC_Calendar_Object::createUID() X-Git-Tag: v4.0.4~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ae00f40b970b8a0a99413bc210e028d18132c3ca;p=nextcloud-server.git add OC_Calendar_Object::createUID() --- diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index 4212bf5a32c..2a6ceaf4684 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -210,6 +210,14 @@ class OC_Calendar_Object{ return true; } + + /** + * @brief Creates a UID + * @return string + */ + protected static function createUID(){ + return substr(md5(rand().time()),0,10); + } /** * @brief Extracts data from a vObject-Object