add OC_Calendar_Object::createUID()

This commit is contained in:
Georg Ehrke 2012-06-26 15:20:29 +02:00
parent 265d7e50f5
commit ae00f40b97
1 changed files with 8 additions and 0 deletions

View File

@ -210,6 +210,14 @@ class OC_Calendar_Object{
return true; 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 * @brief Extracts data from a vObject-Object