Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/storage/PhabricatorCalendarEvent.php
| Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | final class PhabricatorCalendarEvent extends PhabricatorCalendarDAO | ||||
| } | } | ||||
| public function getMonogram() { | public function getMonogram() { | ||||
| return 'E'.$this->getID(); | return 'E'.$this->getID(); | ||||
| } | } | ||||
| public function getTerseSummary(PhabricatorUser $viewer) { | public function getTerseSummary(PhabricatorUser $viewer) { | ||||
| $until = phabricator_date($this->dateTo, $viewer); | $until = phabricator_date($this->dateTo, $viewer); | ||||
| if ($this->status == PhabricatorCalendarEvent::STATUS_SPORADIC) { | if ($this->status == self::STATUS_SPORADIC) { | ||||
| return pht('Sporadic until %s', $until); | return pht('Sporadic until %s', $until); | ||||
| } else { | } else { | ||||
| return pht('Away until %s', $until); | return pht('Away until %s', $until); | ||||
| } | } | ||||
| } | } | ||||
| public static function getNameForStatus($value) { | public static function getNameForStatus($value) { | ||||
| switch ($value) { | switch ($value) { | ||||
| ▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines | |||||