protected function applyInitialEffects(PhabricatorLiskDAO $object, array $xactions)
 {
     $actor = $this->requireActor();
     if ($object->getIsStub()) {
         $this->materializeStub($object);
     }
 }
 protected function applyInitialEffects(PhabricatorLiskDAO $object, array $xactions)
 {
     $actor = $this->requireActor();
     if ($object->getIsStub()) {
         $this->materializeStub($object);
     }
     // Before doing anything, figure out if the event will be an all day event
     // or not after the edit. This affects how we store datetime values, and
     // whether we render times or not.
     $old_allday = $object->getIsAllDay();
     $new_allday = $old_allday;
     $type_allday = PhabricatorCalendarEventAllDayTransaction::TRANSACTIONTYPE;
     foreach ($xactions as $xaction) {
         if ($xaction->getTransactionType() != $type_allday) {
             continue;
         }
         $target_alllday = (bool) $xaction->getNewValue();
     }
     $this->oldIsAllDay = $old_allday;
     $this->newIsAllDay = $new_allday;
 }