Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/storage/PhabricatorCalendarEvent.php
| Show All 36 Lines | final class PhabricatorCalendarEvent | ||||
| public function getConfiguration() { | public function getConfiguration() { | ||||
| return array( | return array( | ||||
| self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
| ) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
| } | } | ||||
| public function generatePHID() { | public function generatePHID() { | ||||
| return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
| PhabricatorCalendarPHIDTypeEvent::TYPECONST); | PhabricatorCalendarEventPHIDType::TYPECONST); | ||||
| } | } | ||||
| 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 == PhabricatorCalendarEvent::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); | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||