Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14066693
D11687.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
27 KB
Referenced Files
None
Subscribers
None
D11687.diff
View Options
diff --git a/src/applications/almanac/query/AlmanacDeviceSearchEngine.php b/src/applications/almanac/query/AlmanacDeviceSearchEngine.php
--- a/src/applications/almanac/query/AlmanacDeviceSearchEngine.php
+++ b/src/applications/almanac/query/AlmanacDeviceSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Almanac Devices');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorAlmanacApplication';
}
diff --git a/src/applications/almanac/query/AlmanacNetworkSearchEngine.php b/src/applications/almanac/query/AlmanacNetworkSearchEngine.php
--- a/src/applications/almanac/query/AlmanacNetworkSearchEngine.php
+++ b/src/applications/almanac/query/AlmanacNetworkSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Almanac Networks');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorAlmanacApplication';
}
diff --git a/src/applications/almanac/query/AlmanacServiceSearchEngine.php b/src/applications/almanac/query/AlmanacServiceSearchEngine.php
--- a/src/applications/almanac/query/AlmanacServiceSearchEngine.php
+++ b/src/applications/almanac/query/AlmanacServiceSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Almanac Services');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorAlmanacApplication';
}
diff --git a/src/applications/audit/query/PhabricatorCommitSearchEngine.php b/src/applications/audit/query/PhabricatorCommitSearchEngine.php
--- a/src/applications/audit/query/PhabricatorCommitSearchEngine.php
+++ b/src/applications/audit/query/PhabricatorCommitSearchEngine.php
@@ -7,6 +7,10 @@
return pht('Commits');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorDiffusionApplication';
+ }
+
public function buildSavedQueryFromRequest(AphrontRequest $request) {
$saved = new PhabricatorSavedQuery();
diff --git a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
--- a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
+++ b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Calendar Events');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorCalendarApplication';
}
diff --git a/src/applications/conduit/query/PhabricatorConduitSearchEngine.php b/src/applications/conduit/query/PhabricatorConduitSearchEngine.php
--- a/src/applications/conduit/query/PhabricatorConduitSearchEngine.php
+++ b/src/applications/conduit/query/PhabricatorConduitSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Conduit Methods');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorConduitApplication';
}
diff --git a/src/applications/countdown/query/PhabricatorCountdownSearchEngine.php b/src/applications/countdown/query/PhabricatorCountdownSearchEngine.php
--- a/src/applications/countdown/query/PhabricatorCountdownSearchEngine.php
+++ b/src/applications/countdown/query/PhabricatorCountdownSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Countdowns');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorCountdownApplication';
}
diff --git a/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchApplicationCustomField.php b/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchApplicationCustomField.php
--- a/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchApplicationCustomField.php
+++ b/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchApplicationCustomField.php
@@ -16,6 +16,17 @@
$engines = id(new PhutilSymbolLoader())
->setAncestorClass('PhabricatorApplicationSearchEngine')
->loadObjects();
+ $all_apps = id(new PhabricatorApplicationQuery())
+ ->setViewer($this->getViewer())
+ ->withUnlisted(false)
+ ->withInstalled(true)
+ ->execute();
+ foreach ($engines as $index => $engine) {
+ if (!isset($all_apps[$engine->getApplicationClassName()])) {
+ unset($engines[$index]);
+ continue;
+ }
+ }
$options = array();
diff --git a/src/applications/dashboard/query/PhabricatorDashboardPanelSearchEngine.php b/src/applications/dashboard/query/PhabricatorDashboardPanelSearchEngine.php
--- a/src/applications/dashboard/query/PhabricatorDashboardPanelSearchEngine.php
+++ b/src/applications/dashboard/query/PhabricatorDashboardPanelSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Dashboard Panels');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorDashboardApplication';
}
diff --git a/src/applications/dashboard/query/PhabricatorDashboardSearchEngine.php b/src/applications/dashboard/query/PhabricatorDashboardSearchEngine.php
--- a/src/applications/dashboard/query/PhabricatorDashboardSearchEngine.php
+++ b/src/applications/dashboard/query/PhabricatorDashboardSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Dashboards');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorDashboardApplication';
}
diff --git a/src/applications/differential/query/DifferentialRevisionSearchEngine.php b/src/applications/differential/query/DifferentialRevisionSearchEngine.php
--- a/src/applications/differential/query/DifferentialRevisionSearchEngine.php
+++ b/src/applications/differential/query/DifferentialRevisionSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Differential Revisions');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorDifferentialApplication';
}
diff --git a/src/applications/diviner/query/DivinerAtomSearchEngine.php b/src/applications/diviner/query/DivinerAtomSearchEngine.php
--- a/src/applications/diviner/query/DivinerAtomSearchEngine.php
+++ b/src/applications/diviner/query/DivinerAtomSearchEngine.php
@@ -6,7 +6,7 @@
return pht('Documentation Atoms');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorDivinerApplication';
}
diff --git a/src/applications/drydock/query/DrydockBlueprintSearchEngine.php b/src/applications/drydock/query/DrydockBlueprintSearchEngine.php
--- a/src/applications/drydock/query/DrydockBlueprintSearchEngine.php
+++ b/src/applications/drydock/query/DrydockBlueprintSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Drydock Blueprints');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorDrydockApplication';
}
diff --git a/src/applications/drydock/query/DrydockLeaseSearchEngine.php b/src/applications/drydock/query/DrydockLeaseSearchEngine.php
--- a/src/applications/drydock/query/DrydockLeaseSearchEngine.php
+++ b/src/applications/drydock/query/DrydockLeaseSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Drydock Leases');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorDrydockApplication';
}
diff --git a/src/applications/drydock/query/DrydockLogSearchEngine.php b/src/applications/drydock/query/DrydockLogSearchEngine.php
--- a/src/applications/drydock/query/DrydockLogSearchEngine.php
+++ b/src/applications/drydock/query/DrydockLogSearchEngine.php
@@ -6,7 +6,7 @@
return pht('Drydock Logs');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorDrydockApplication';
}
diff --git a/src/applications/drydock/query/DrydockResourceSearchEngine.php b/src/applications/drydock/query/DrydockResourceSearchEngine.php
--- a/src/applications/drydock/query/DrydockResourceSearchEngine.php
+++ b/src/applications/drydock/query/DrydockResourceSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Drydock Resources');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorDrydockApplication';
}
diff --git a/src/applications/feed/query/PhabricatorFeedSearchEngine.php b/src/applications/feed/query/PhabricatorFeedSearchEngine.php
--- a/src/applications/feed/query/PhabricatorFeedSearchEngine.php
+++ b/src/applications/feed/query/PhabricatorFeedSearchEngine.php
@@ -7,6 +7,10 @@
return pht('Feed Stories');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorFeedApplication';
+ }
+
public function buildSavedQueryFromRequest(AphrontRequest $request) {
$saved = new PhabricatorSavedQuery();
diff --git a/src/applications/files/query/PhabricatorFileSearchEngine.php b/src/applications/files/query/PhabricatorFileSearchEngine.php
--- a/src/applications/files/query/PhabricatorFileSearchEngine.php
+++ b/src/applications/files/query/PhabricatorFileSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Files');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorFilesApplication';
}
diff --git a/src/applications/flag/query/PhabricatorFlagSearchEngine.php b/src/applications/flag/query/PhabricatorFlagSearchEngine.php
--- a/src/applications/flag/query/PhabricatorFlagSearchEngine.php
+++ b/src/applications/flag/query/PhabricatorFlagSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Flags');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorFlagsApplication';
}
diff --git a/src/applications/fund/query/FundBackerSearchEngine.php b/src/applications/fund/query/FundBackerSearchEngine.php
--- a/src/applications/fund/query/FundBackerSearchEngine.php
+++ b/src/applications/fund/query/FundBackerSearchEngine.php
@@ -18,7 +18,7 @@
return pht('Fund Backers');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorFundApplication';
}
diff --git a/src/applications/fund/query/FundInitiativeSearchEngine.php b/src/applications/fund/query/FundInitiativeSearchEngine.php
--- a/src/applications/fund/query/FundInitiativeSearchEngine.php
+++ b/src/applications/fund/query/FundInitiativeSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Fund Initiatives');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorFundApplication';
}
diff --git a/src/applications/harbormaster/query/HarbormasterBuildPlanSearchEngine.php b/src/applications/harbormaster/query/HarbormasterBuildPlanSearchEngine.php
--- a/src/applications/harbormaster/query/HarbormasterBuildPlanSearchEngine.php
+++ b/src/applications/harbormaster/query/HarbormasterBuildPlanSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Harbormaster Build Plans');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorHarbormasterApplication';
}
diff --git a/src/applications/harbormaster/query/HarbormasterBuildableSearchEngine.php b/src/applications/harbormaster/query/HarbormasterBuildableSearchEngine.php
--- a/src/applications/harbormaster/query/HarbormasterBuildableSearchEngine.php
+++ b/src/applications/harbormaster/query/HarbormasterBuildableSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Harbormaster Buildables');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorHarbormasterApplication';
}
diff --git a/src/applications/herald/query/HeraldRuleSearchEngine.php b/src/applications/herald/query/HeraldRuleSearchEngine.php
--- a/src/applications/herald/query/HeraldRuleSearchEngine.php
+++ b/src/applications/herald/query/HeraldRuleSearchEngine.php
@@ -6,7 +6,7 @@
return pht('Herald Rules');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorHeraldApplication';
}
diff --git a/src/applications/herald/query/HeraldTranscriptSearchEngine.php b/src/applications/herald/query/HeraldTranscriptSearchEngine.php
--- a/src/applications/herald/query/HeraldTranscriptSearchEngine.php
+++ b/src/applications/herald/query/HeraldTranscriptSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Herald Transcripts');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorHeraldApplication';
}
diff --git a/src/applications/legalpad/query/LegalpadDocumentSearchEngine.php b/src/applications/legalpad/query/LegalpadDocumentSearchEngine.php
--- a/src/applications/legalpad/query/LegalpadDocumentSearchEngine.php
+++ b/src/applications/legalpad/query/LegalpadDocumentSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Legalpad Documents');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorLegalpadApplication';
}
diff --git a/src/applications/legalpad/query/LegalpadDocumentSignatureSearchEngine.php b/src/applications/legalpad/query/LegalpadDocumentSignatureSearchEngine.php
--- a/src/applications/legalpad/query/LegalpadDocumentSignatureSearchEngine.php
+++ b/src/applications/legalpad/query/LegalpadDocumentSignatureSearchEngine.php
@@ -9,7 +9,7 @@
return pht('Legalpad Signatures');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorLegalpadApplication';
}
diff --git a/src/applications/macro/query/PhabricatorMacroSearchEngine.php b/src/applications/macro/query/PhabricatorMacroSearchEngine.php
--- a/src/applications/macro/query/PhabricatorMacroSearchEngine.php
+++ b/src/applications/macro/query/PhabricatorMacroSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Macros');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorMacroApplication';
}
diff --git a/src/applications/mailinglists/query/PhabricatorMailingListSearchEngine.php b/src/applications/mailinglists/query/PhabricatorMailingListSearchEngine.php
--- a/src/applications/mailinglists/query/PhabricatorMailingListSearchEngine.php
+++ b/src/applications/mailinglists/query/PhabricatorMailingListSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Mailing Lists');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorMailingListsApplication';
}
diff --git a/src/applications/maniphest/query/ManiphestTaskSearchEngine.php b/src/applications/maniphest/query/ManiphestTaskSearchEngine.php
--- a/src/applications/maniphest/query/ManiphestTaskSearchEngine.php
+++ b/src/applications/maniphest/query/ManiphestTaskSearchEngine.php
@@ -34,7 +34,7 @@
return pht('Tasks');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorManiphestApplication';
}
diff --git a/src/applications/meta/query/PhabricatorAppSearchEngine.php b/src/applications/meta/query/PhabricatorAppSearchEngine.php
--- a/src/applications/meta/query/PhabricatorAppSearchEngine.php
+++ b/src/applications/meta/query/PhabricatorAppSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Applications');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorApplicationsApplication';
}
diff --git a/src/applications/notification/query/PhabricatorNotificationSearchEngine.php b/src/applications/notification/query/PhabricatorNotificationSearchEngine.php
--- a/src/applications/notification/query/PhabricatorNotificationSearchEngine.php
+++ b/src/applications/notification/query/PhabricatorNotificationSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Notifications');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorNotificationsApplication';
}
diff --git a/src/applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php b/src/applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php
--- a/src/applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php
+++ b/src/applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php
@@ -7,7 +7,7 @@
return pht('OAuth Clients');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorOAuthServerApplication';
}
diff --git a/src/applications/passphrase/query/PassphraseCredentialSearchEngine.php b/src/applications/passphrase/query/PassphraseCredentialSearchEngine.php
--- a/src/applications/passphrase/query/PassphraseCredentialSearchEngine.php
+++ b/src/applications/passphrase/query/PassphraseCredentialSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Passphrase Credentials');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorPassphraseApplication';
}
diff --git a/src/applications/paste/query/PhabricatorPasteSearchEngine.php b/src/applications/paste/query/PhabricatorPasteSearchEngine.php
--- a/src/applications/paste/query/PhabricatorPasteSearchEngine.php
+++ b/src/applications/paste/query/PhabricatorPasteSearchEngine.php
@@ -7,6 +7,10 @@
return pht('Pastes');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorPasteApplication';
+ }
+
public function buildSavedQueryFromRequest(AphrontRequest $request) {
$saved = new PhabricatorSavedQuery();
$saved->setParameter(
diff --git a/src/applications/people/query/PhabricatorPeopleLogSearchEngine.php b/src/applications/people/query/PhabricatorPeopleLogSearchEngine.php
--- a/src/applications/people/query/PhabricatorPeopleLogSearchEngine.php
+++ b/src/applications/people/query/PhabricatorPeopleLogSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Account Activity');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorPeopleApplication';
}
diff --git a/src/applications/people/query/PhabricatorPeopleSearchEngine.php b/src/applications/people/query/PhabricatorPeopleSearchEngine.php
--- a/src/applications/people/query/PhabricatorPeopleSearchEngine.php
+++ b/src/applications/people/query/PhabricatorPeopleSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Users');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorPeopleApplication';
}
diff --git a/src/applications/pholio/query/PholioMockSearchEngine.php b/src/applications/pholio/query/PholioMockSearchEngine.php
--- a/src/applications/pholio/query/PholioMockSearchEngine.php
+++ b/src/applications/pholio/query/PholioMockSearchEngine.php
@@ -6,7 +6,7 @@
return pht('Pholio Mocks');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorPholioApplication';
}
diff --git a/src/applications/phortune/query/PhortuneCartSearchEngine.php b/src/applications/phortune/query/PhortuneCartSearchEngine.php
--- a/src/applications/phortune/query/PhortuneCartSearchEngine.php
+++ b/src/applications/phortune/query/PhortuneCartSearchEngine.php
@@ -38,6 +38,10 @@
return pht('Phortune Orders');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorPhortuneApplication';
+ }
+
public function buildSavedQueryFromRequest(AphrontRequest $request) {
$saved = new PhabricatorSavedQuery();
diff --git a/src/applications/phortune/query/PhortuneChargeSearchEngine.php b/src/applications/phortune/query/PhortuneChargeSearchEngine.php
--- a/src/applications/phortune/query/PhortuneChargeSearchEngine.php
+++ b/src/applications/phortune/query/PhortuneChargeSearchEngine.php
@@ -18,6 +18,10 @@
return pht('Phortune Charges');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorPhortuneApplication';
+ }
+
public function buildSavedQueryFromRequest(AphrontRequest $request) {
$saved = new PhabricatorSavedQuery();
diff --git a/src/applications/phortune/query/PhortuneMerchantSearchEngine.php b/src/applications/phortune/query/PhortuneMerchantSearchEngine.php
--- a/src/applications/phortune/query/PhortuneMerchantSearchEngine.php
+++ b/src/applications/phortune/query/PhortuneMerchantSearchEngine.php
@@ -7,6 +7,10 @@
return pht('Phortune Merchants');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorPhortuneApplication';
+ }
+
public function buildSavedQueryFromRequest(AphrontRequest $request) {
$saved = new PhabricatorSavedQuery();
diff --git a/src/applications/phortune/query/PhortuneSubscriptionSearchEngine.php b/src/applications/phortune/query/PhortuneSubscriptionSearchEngine.php
--- a/src/applications/phortune/query/PhortuneSubscriptionSearchEngine.php
+++ b/src/applications/phortune/query/PhortuneSubscriptionSearchEngine.php
@@ -28,6 +28,10 @@
return pht('Phortune Subscriptions');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorPhortuneApplication';
+ }
+
public function buildSavedQueryFromRequest(AphrontRequest $request) {
$saved = new PhabricatorSavedQuery();
diff --git a/src/applications/phrequent/query/PhrequentSearchEngine.php b/src/applications/phrequent/query/PhrequentSearchEngine.php
--- a/src/applications/phrequent/query/PhrequentSearchEngine.php
+++ b/src/applications/phrequent/query/PhrequentSearchEngine.php
@@ -6,7 +6,7 @@
return pht('Phrequent Time');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorPhrequentApplication';
}
diff --git a/src/applications/phriction/query/PhrictionSearchEngine.php b/src/applications/phriction/query/PhrictionSearchEngine.php
--- a/src/applications/phriction/query/PhrictionSearchEngine.php
+++ b/src/applications/phriction/query/PhrictionSearchEngine.php
@@ -7,6 +7,10 @@
return pht('Wiki Documents');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorPhrictionApplication';
+ }
+
public function buildSavedQueryFromRequest(AphrontRequest $request) {
$saved = new PhabricatorSavedQuery();
diff --git a/src/applications/ponder/query/PonderQuestionSearchEngine.php b/src/applications/ponder/query/PonderQuestionSearchEngine.php
--- a/src/applications/ponder/query/PonderQuestionSearchEngine.php
+++ b/src/applications/ponder/query/PonderQuestionSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Ponder Questions');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorPonderApplication';
}
diff --git a/src/applications/project/query/PhabricatorProjectSearchEngine.php b/src/applications/project/query/PhabricatorProjectSearchEngine.php
--- a/src/applications/project/query/PhabricatorProjectSearchEngine.php
+++ b/src/applications/project/query/PhabricatorProjectSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Projects');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorProjectApplication';
}
diff --git a/src/applications/releeph/query/ReleephBranchSearchEngine.php b/src/applications/releeph/query/ReleephBranchSearchEngine.php
--- a/src/applications/releeph/query/ReleephBranchSearchEngine.php
+++ b/src/applications/releeph/query/ReleephBranchSearchEngine.php
@@ -9,6 +9,10 @@
return pht('Releeph Branches');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorReleephApplication';
+ }
+
public function setProduct(ReleephProject $product) {
$this->product = $product;
return $this;
diff --git a/src/applications/releeph/query/ReleephProductSearchEngine.php b/src/applications/releeph/query/ReleephProductSearchEngine.php
--- a/src/applications/releeph/query/ReleephProductSearchEngine.php
+++ b/src/applications/releeph/query/ReleephProductSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Releeph Products');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorReleephApplication';
}
diff --git a/src/applications/releeph/query/ReleephRequestSearchEngine.php b/src/applications/releeph/query/ReleephRequestSearchEngine.php
--- a/src/applications/releeph/query/ReleephRequestSearchEngine.php
+++ b/src/applications/releeph/query/ReleephRequestSearchEngine.php
@@ -10,6 +10,10 @@
return pht('Releeph Pull Requests');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorReleephApplication';
+ }
+
public function setBranch(ReleephBranch $branch) {
$this->branch = $branch;
return $this;
diff --git a/src/applications/repository/query/PhabricatorRepositoryPushLogSearchEngine.php b/src/applications/repository/query/PhabricatorRepositoryPushLogSearchEngine.php
--- a/src/applications/repository/query/PhabricatorRepositoryPushLogSearchEngine.php
+++ b/src/applications/repository/query/PhabricatorRepositoryPushLogSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Push Logs');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorDiffusionApplication';
}
diff --git a/src/applications/repository/query/PhabricatorRepositorySearchEngine.php b/src/applications/repository/query/PhabricatorRepositorySearchEngine.php
--- a/src/applications/repository/query/PhabricatorRepositorySearchEngine.php
+++ b/src/applications/repository/query/PhabricatorRepositorySearchEngine.php
@@ -7,7 +7,7 @@
return pht('Repositories');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorDiffusionApplication';
}
diff --git a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
--- a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
+++ b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
@@ -243,9 +243,7 @@
return $this->application;
}
- protected function getApplicationClassName() {
- throw new PhutilMethodNotImplementedException();
- }
+ abstract public function getApplicationClassName();
/* -( Constructing Engines )----------------------------------------------- */
diff --git a/src/applications/search/query/PhabricatorSearchApplicationSearchEngine.php b/src/applications/search/query/PhabricatorSearchApplicationSearchEngine.php
--- a/src/applications/search/query/PhabricatorSearchApplicationSearchEngine.php
+++ b/src/applications/search/query/PhabricatorSearchApplicationSearchEngine.php
@@ -7,7 +7,7 @@
return pht('Fulltext Results');
}
- protected function getApplicationClassName() {
+ public function getApplicationClassName() {
return 'PhabricatorSearchApplication';
}
diff --git a/src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php b/src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php
--- a/src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php
+++ b/src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php
@@ -7,6 +7,10 @@
return pht('Slowvotes');
}
+ public function getApplicationClassName() {
+ return 'PhabricatorSlowvoteApplication';
+ }
+
public function buildSavedQueryFromRequest(AphrontRequest $request) {
$saved = new PhabricatorSavedQuery();
$saved->setParameter(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 11:13 AM (2 h, 14 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6743938
Default Alt Text
D11687.diff (27 KB)
Attached To
Mode
D11687: Policy - filter app engines where the user can't see the application from panel editing
Attached
Detach File
Event Timeline
Log In to Comment