Differential D25524 Diff 1678 src/applications/calendar/typeahead/PhabricatorCalendarInviteeUserDatasource.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/typeahead/PhabricatorCalendarInviteeUserDatasource.php
<?php | <?php | ||||
final class PhabricatorCalendarInviteeUserDatasource | final class PhabricatorCalendarInviteeUserDatasource | ||||
extends PhabricatorTypeaheadCompositeDatasource { | extends PhabricatorTypeaheadCompositeDatasource { | ||||
public function getBrowseTitle() { | public function getBrowseTitle() { | ||||
return pht('Browse Users'); | return pht('Browse Users'); | ||||
} | } | ||||
public function getPlaceholderText() { | public function getPlaceholderText() { | ||||
return pht('Type a user name...'); | return pht('Type a user name...'); | ||||
} | } | ||||
public function getDatasourceApplicationClass() { | public function getDatasourceApplicationClass() { | ||||
return 'PhabricatorCalendarApplication'; | return PhabricatorCalendarApplication::class; | ||||
} | } | ||||
public function getComponentDatasources() { | public function getComponentDatasources() { | ||||
return array( | return array( | ||||
new PhabricatorPeopleDatasource(), | new PhabricatorPeopleDatasource(), | ||||
); | ); | ||||
} | } | ||||
protected function evaluateValues(array $values) { | protected function evaluateValues(array $values) { | ||||
return PhabricatorCalendarInviteeDatasource::expandInvitees( | return PhabricatorCalendarInviteeDatasource::expandInvitees( | ||||
$this->getViewer(), | $this->getViewer(), | ||||
$values); | $values); | ||||
} | } | ||||
} | } |
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