public function getEventObject()
    {
        if ($this->currentOverriddenEvent) {
            return $this->currentOverriddenEvent;
        }

        $event = clone $this->masterEvent;

        // Ignoring the following block, because PHPUnit's code coverage
        // ignores most of these lines, and this messes with our stats.
        //
        // @codeCoverageIgnoreStart
        unset(
            $event->RRULE,
            $event->EXDATE,
            $event->RDATE,
            $event->EXRULE,
            $event->{'RECURRENCE-ID'}
        );
        // @codeCoverageIgnoreEnd

        $event->DTSTART->setDateTime($this->getDtStart(), $event->DTSTART->isFloating());
        if (isset($event->DTEND)) {
            $event->DTEND->setDateTime($this->getDtEnd(), $event->DTEND->isFloating());
        }
        $recurid = clone $event->DTSTART;
        $recurid->name = 'RECURRENCE-ID';
        $event->add($recurid);

        return $event;
    }
public function getEventObject()
    {
        if ($this->currentOverriddenEvent) {
            return $this->currentOverriddenEvent;
        }

        $event = clone $this->masterEvent;

        // Ignoring the following block, because PHPUnit's code coverage
        // ignores most of these lines, and this messes with our stats.
        //
        // @codeCoverageIgnoreStart
        unset(
            $event->RRULE,
            $event->EXDATE,
            $event->RDATE,
            $event->EXRULE,
            $event->{'RECURRENCE-ID'}
        );
        // @codeCoverageIgnoreEnd

        $event->DTSTART->setDateTime($this->getDtStart(), $event->DTSTART->isFloating());
        if (isset($event->DTEND)) {
            $event->DTEND->setDateTime($this->getDtEnd(), $event->DTEND->isFloating());
        }
        $recurid = clone $event->DTSTART;
        $recurid->name = 'RECURRENCE-ID';
        $event->add($recurid);

        return $event;
    }
public function getEventObject ( ) { if ( $ this -> currentOverriddenEvent ) { return $ this -> currentOverriddenEvent ; } $ event = clone $ this -> masterEvent ; // Ignoring the following block, because PHPUnit's code coverage // ignores most of these lines, and this messes with our stats. // // @codeCoverageIgnoreStart unset ( $ event -> RRULE , $ event -> EXDATE , $ event -> RDATE , $ event -> EXRULE , $ event -> { 'RECURRENCE-ID' } ) ; // @codeCoverageIgnoreEnd $ event -> DTSTART -> setDateTime ( $ this -> getDtStart ( ) , $ event -> DTSTART -> isFloating ( ) ) ; if ( isset ( $ event -> DTEND ) ) { $ event -> DTEND -> setDateTime ( $ this -> getDtEnd ( ) , $ event -> DTEND -> isFloating ( ) ) ; } $ recurid = clone $ event -> DTSTART ; $ recurid -> name = 'RECURRENCE-ID' ; $ event -> add ( $ recurid ) ; return $ event ; }
Returns a VEVENT for the current iterations of the event.

This VEVENT will have a recurrence id, and its DTSTART and DTEND
altered.

@return VEvent
Returns a VEVENT for the current iterations of the event .