diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-06-26 17:20:29 +0400 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-06-26 17:21:41 +0400 |
commit | ae00f40b970b8a0a99413bc210e028d18132c3ca (patch) | |
tree | 7098f0ec17325d24fad1e83a849419a877c760d6 | |
parent | 265d7e50f55978a3bebfa077aa8552d5ea1b0c59 (diff) |
add OC_Calendar_Object::createUID()
-rw-r--r-- | apps/calendar/lib/object.php | 8 |
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 |