concrete/src/Calendar/Event/EventService.php
public function requireOccurrenceRegeneration($repetitions1, $repetitions2)
    {
        if (count($repetitions1) != count($repetitions2)) {
            return true;
        }

        $comparator = new Comparator();

        for ($i = 0; $i < count($repetitions1); $i++) {
            if (!$comparator->areEqual($repetitions1[$i]->getRepetitionObject(), $repetitions2[$i]->getRepetitionObject())) {
                return true;
            }
        }

        return false;
    }
public function requireOccurrenceRegeneration($repetitions1, $repetitions2)
    {
        if (count($repetitions1) != count($repetitions2)) {
            return true;
        }

        $comparator = new Comparator();

        for ($i = 0; $i < count($repetitions1); $i++) {
            if (!$comparator->areEqual($repetitions1[$i]->getRepetitionObject(), $repetitions2[$i]->getRepetitionObject())) {
                return true;
            }
        }

        return false;
    }
public function requireOccurrenceRegeneration ( $ repetitions1 , $ repetitions2 ) { if ( count ( $ repetitions1 ) != count ( $ repetitions2 ) ) { return true ; } $ comparator = new Comparator ( ) ; for ( $ i = 0 ; $ i < count ( $ repetitions1 ) ; $ i ++ ) { if ( ! $ comparator -> areEqual ( $ repetitions1 [ $ i ] -> getRepetitionObject ( ) , $ repetitions2 [ $ i ] -> getRepetitionObject ( ) ) ) { return true ; } } return false ; }
Returns true if the difference between the event versions impacts repetitions and occurrences.
Returns true if the difference between the event versions impacts repetitions and occurrences .