Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/phid/PhabricatorCalendarPHIDTypeEvent.php
<?php | <?php | ||||
final class PhabricatorCalendarPHIDTypeEvent extends PhabricatorPHIDType { | final class PhabricatorCalendarPHIDTypeEvent extends PhabricatorPHIDType { | ||||
const TYPECONST = 'CEVT'; | const TYPECONST = 'CEVT'; | ||||
public function getTypeConstant() { | |||||
return self::TYPECONST; | |||||
} | |||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Event'); | return pht('Event'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorCalendarEvent(); | return new PhabricatorCalendarEvent(); | ||||
} | } | ||||
Show All 23 Lines |