]> source.dussan.org Git - nextcloud-server.git/commitdiff
add OC_Calendar_Object::createUID()
authorGeorg Ehrke <dev@georgswebsite.de>
Tue, 26 Jun 2012 13:20:29 +0000 (15:20 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Tue, 26 Jun 2012 13:21:41 +0000 (15:21 +0200)
apps/calendar/lib/object.php

index 4212bf5a32c1cf1095097628dfd769250d03c106..2a6ceaf4684380a1076a8c5771f8d25145114d46 100644 (file)
@@ -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