24 if (!Loader::includeModule(
"calendar"))
26 return self::FINISH_EXECUTION;
31 $dataToClean = $this->getDuplicatedChildEntryList();
32 if (
count($dataToClean))
34 foreach ($dataToClean as $entryToClean)
36 $this->cleanDuplicates(
37 (
int)$entryToClean[
'PARENT_ID'],
38 (
int)$entryToClean[
'OWNER_ID'],
39 (
int)$entryToClean[
'FIRSTID'] === (
int)$entryToClean[
'PARENT_ID']
40 ? (
int)$entryToClean[
'FIRSTID']
41 : (
int)$entryToClean[
'LASTID']
46 return self::CONTINUE_EXECUTION;
50 return self::CONTINUE_EXECUTION;
53 if ($this->getBogusLocationEntry())
55 $this->clearBogusLocationEntries();
56 return self::CONTINUE_EXECUTION;
59 if ($this->getLocationEntriesWithEmptyParent())
61 $this->clearLocationEntriesWithEmptyParent();
62 return self::CONTINUE_EXECUTION;
65 return self::FINISH_EXECUTION;