22 if (empty($connection[
'ID']))
24 $server = $this->getApiService()->prepareUrl($this->helper::SERVER_PATH);
26 $server[
'path'] = $this->getApiService()->getPrinciples($connection, $server);
32 $calendarPath = $this->getApiService()->getCalendarPath($connection, $server);
42 return $connection[
'SERVER_SCHEME']
44 . $connection[
'SERVER_HOST']
45 . $connection[
'SERVER_PATH']
51 $word = sprintf(
'%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
52 mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),
54 mt_rand( 0, 0x0fff ) | 0x4000,
55 mt_rand( 0, 0x3fff ) | 0x8000,
56 mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff )
59 return mb_strtoupper($word);