Differential D16282 Diff 39169 src/applications/calendar/storage/PhabricatorCalendarEventTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/storage/PhabricatorCalendarEventTransaction.php
Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
} | } | ||||
} | } | ||||
return $text; | return $text; | ||||
case self::TYPE_RECURRING: | case self::TYPE_RECURRING: | ||||
$text = pht('%s made this event recurring.', | $text = pht('%s made this event recurring.', | ||||
$this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
return $text; | return $text; | ||||
case self::TYPE_FREQUENCY: | case self::TYPE_FREQUENCY: | ||||
$rule = $new; | |||||
if (is_array($rule)) { | |||||
$rule = idx($rule, 'rule'); | |||||
} | |||||
$text = ''; | $text = ''; | ||||
switch ($new['rule']) { | switch ($rule) { | ||||
case PhabricatorCalendarEvent::FREQUENCY_DAILY: | case PhabricatorCalendarEvent::FREQUENCY_DAILY: | ||||
$text = pht('%s set this event to repeat daily.', | $text = pht('%s set this event to repeat daily.', | ||||
$this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
break; | break; | ||||
case PhabricatorCalendarEvent::FREQUENCY_WEEKLY: | case PhabricatorCalendarEvent::FREQUENCY_WEEKLY: | ||||
$text = pht('%s set this event to repeat weekly.', | $text = pht('%s set this event to repeat weekly.', | ||||
$this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
} | } | ||||
return $text; | return $text; | ||||
case self::TYPE_RECURRING: | case self::TYPE_RECURRING: | ||||
$text = pht('%s made %s a recurring event.', | $text = pht('%s made %s a recurring event.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink($object_phid)); | $this->renderHandleLink($object_phid)); | ||||
return $text; | return $text; | ||||
case self::TYPE_FREQUENCY: | case self::TYPE_FREQUENCY: | ||||
$rule = $new; | |||||
if (is_array($rule)) { | |||||
$rule = idx($rule, 'rule'); | |||||
} | |||||
$text = ''; | $text = ''; | ||||
switch ($new['rule']) { | switch ($rule) { | ||||
case PhabricatorCalendarEvent::FREQUENCY_DAILY: | case PhabricatorCalendarEvent::FREQUENCY_DAILY: | ||||
$text = pht('%s set %s to repeat daily.', | $text = pht('%s set %s to repeat daily.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink($object_phid)); | $this->renderHandleLink($object_phid)); | ||||
break; | break; | ||||
case PhabricatorCalendarEvent::FREQUENCY_WEEKLY: | case PhabricatorCalendarEvent::FREQUENCY_WEEKLY: | ||||
$text = pht('%s set %s to repeat weekly.', | $text = pht('%s set %s to repeat weekly.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |