Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-06-26 17:20:29 +0400
committerGeorg Ehrke <dev@georgswebsite.de>2012-06-26 17:21:41 +0400
commitae00f40b970b8a0a99413bc210e028d18132c3ca (patch)
tree7098f0ec17325d24fad1e83a849419a877c760d6
parent265d7e50f55978a3bebfa077aa8552d5ea1b0c59 (diff)
add OC_Calendar_Object::createUID()
-rw-r--r--apps/calendar/lib/object.php8
1 files changed, 8 insertions, 0 deletions
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