if ($event->id) {
$id = $event->id;
} else {
- $id = strval(new Horde_Support_Uuid);
+ $id = strval(new Horde_Support_Randomid);
$event->id = $id;
}
$owner = null, $assignee = null)
{
if (is_null($uid)) {
- $uid = strval(new Horde_Support_Uuid());
+ $uid = strval(new Horde_Support_Guid());
}
if (is_null($owner)) {
$owner = $GLOBALS['registry']->getAuth();
{
// Usually provided by the generic Driver class
if ($uid !== null) {
- $uid = strval(new Horde_Support_Uuid());
+ $uid = strval(new Horde_Support_Guid());
}
// Load the object into the kolab driver
$completed_date = null)
{
if (empty($uid)) {
- $task_uid = strval(new Horde_Support_Uuid());
+ $task_uid = strval(new Horde_Support_Guid());
$old_uid = null;
} else {
list($task_uid, $tasklist) = $this->_splitId($uid);
$methods = null, $uid = null, $parent = '', $private = false,
$owner = null, $assignee = null)
{
- $taskId = strval(new Horde_Support_Uuid());
+ $taskId = strval(new Horde_Support_Randomid());
if ($uid === null) {
- $uid = strval(new Horde_Support_Uuid());
+ $uid = strval(new Horde_Support_Guid());
}
$query = sprintf(
{
/* Make sure tasks always have a UID. */
if (empty($row['task_uid'])) {
- $row['task_uid'] = strval(new Horde_Support_Uuid());
+ $row['task_uid'] = strval(new Horde_Support_Guid());
$query = 'UPDATE ' . $this->_params['table'] .
' SET task_uid = ?' .
}
if (!isset($attributes['__uid'])) {
- $attributes['__uid'] = strval(new Horde_Support_Uuid());
+ $attributes['__uid'] = strval(new Horde_Support_Randomid());
}
$key = $attributes['__key'] = $this->_makeKey($this->toDriverKeys($attributes));
*/
function _makeKey($attributes)
{
- return strval(new Horde_Support_Uuid());
+ return strval(new Horde_Support_Randomid());
}
/**
}
// Create the new share.
-$owner_uid = strval(new Horde_Support_Uuid());
+$owner_uid = strval(new Horde_Support_Randomid());
$share = &$turba_shares->newShare($sourceKey . ':' . $owner_uid);
if ($share instanceof Horde_Share_Exception) {
var_dump($share);
'criteria' => $params['criteria'])));
try {
- $share = Turba::createShare(strval(new Horde_Support_Uuid()), $params);
+ $share = Turba::createShare(strval(new Horde_Support_RandomId()), $params);
} catch (Horde_Share_Exception $e) {
throw new Turba_Exception($e);
}