11 if ($responseLine = mb_stristr($copyUid,
'COPYUID'))
13 $data = explode(
' ', mb_stristr($copyUid,
'COPYUID'));
14 if (isset($data[1]) && isset($data[2]) && isset($data[3]))
16 $dirUidValidity = $data[1];
17 $idsFrom = $this->getIdsSet($data[2]);
18 $idsTo = $this->getIdsSet(str_replace(
']',
'', $data[3]));
19 $uIds = array_combine($idsFrom, $idsTo);
25 'dirUid' => $dirUidValidity,
29 private function getIdsSet($line)
32 $idsFromParsed = explode(
',', $line);
33 foreach ($idsFromParsed as $_index => $_idFrom)
35 $sequence = explode(
':', $_idFrom);
36 if (count($sequence) == 2)
38 $idsFrom = array_merge($idsFrom, range(min($sequence[0], $sequence[1]), max($sequence[0], $sequence[1]), 1));
40 elseif (count($sequence) == 1)
42 $idsFrom[] = intval($sequence[0]);