Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/phid/PhabricatorCalendarExportPHIDType.php
<?php | <?php | ||||
final class PhabricatorCalendarExportPHIDType extends PhabricatorPHIDType { | final class PhabricatorCalendarExportPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'CEXP'; | const TYPECONST = 'CEXP'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Calendar Export'); | return pht('Calendar Export'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorCalendarExport(); | return new PhabricatorCalendarExport(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | public function getPHIDTypeApplicationClass() { | ||||
return 'PhabricatorCalendarApplication'; | return PhabricatorCalendarApplication::class; | ||||
} | } | ||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PhabricatorCalendarExportQuery()) | return id(new PhabricatorCalendarExportQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
Show All 26 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0