From b9ce4e1f406f1ee57d58b409c368a89aa9ddde9a Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 26 Jun 2012 15:20:29 +0200 Subject: [PATCH] add OC_Calendar_Object::createUID() --- apps/calendar/lib/object.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index 7f3322b1ab..0531a56fc5 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -216,6 +216,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