Changeset View
Changeset View
Standalone View
Standalone View
src/applications/badges/typeahead/PhabricatorBadgesDatasource.php
<?php | <?php | ||||
final class PhabricatorBadgesDatasource | final class PhabricatorBadgesDatasource | ||||
extends PhabricatorTypeaheadDatasource { | extends PhabricatorTypeaheadDatasource { | ||||
public function getBrowseTitle() { | public function getBrowseTitle() { | ||||
return pht('Browse Badges'); | return pht('Browse Badges'); | ||||
} | } | ||||
public function getPlaceholderText() { | public function getPlaceholderText() { | ||||
return pht('Type a badge name...'); | return pht('Type a badge name...'); | ||||
} | } | ||||
public function getDatasourceApplicationClass() { | public function getDatasourceApplicationClass() { | ||||
return 'PhabricatorBadgesApplication'; | return PhabricatorBadgesApplication::class; | ||||
} | } | ||||
public function loadResults() { | public function loadResults() { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$raw_query = $this->getRawQuery(); | $raw_query = $this->getRawQuery(); | ||||
$params = $this->getParameters(); | $params = $this->getParameters(); | ||||
$recipient_phid = $params['recipientPHID']; | $recipient_phid = $params['recipientPHID']; | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 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