diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-06-26 15:20:29 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-06-26 15:20:29 +0200 |
commit | b9ce4e1f406f1ee57d58b409c368a89aa9ddde9a (patch) | |
tree | 758bc0fe54e6730c09d9c03dc4f92e3288f3167d /apps/calendar/lib/object.php | |
parent | 72b365842f03d01e1479578ae36f5074d793e702 (diff) | |
download | nextcloud-server-b9ce4e1f406f1ee57d58b409c368a89aa9ddde9a.tar.gz nextcloud-server-b9ce4e1f406f1ee57d58b409c368a89aa9ddde9a.zip |
add OC_Calendar_Object::createUID()
Diffstat (limited to 'apps/calendar/lib/object.php')
-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 7f3322b1ab5..0531a56fc50 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 |