Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/query/PhortuneSubscriptionSearchEngine.php
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | final class PhortuneSubscriptionSearchEngine | ||||
public function buildSearchForm( | public function buildSearchForm( | ||||
AphrontFormView $form, | AphrontFormView $form, | ||||
PhabricatorSavedQuery $saved_query) {} | PhabricatorSavedQuery $saved_query) {} | ||||
protected function getURI($path) { | protected function getURI($path) { | ||||
$merchant = $this->getMerchant(); | $merchant = $this->getMerchant(); | ||||
$account = $this->getAccount(); | $account = $this->getAccount(); | ||||
if ($merchant) { | if ($merchant) { | ||||
return '/phortune/merchant/'.$merchant->getID().'/subscription/'.$path; | return $merchant->getSubscriptionListURI($path); | ||||
} else if ($account) { | } else if ($account) { | ||||
return '/phortune/'.$account->getID().'/subscription/'; | return $account->getSubscriptionListURI($path); | ||||
} else { | } else { | ||||
return '/phortune/subscription/'.$path; | return '/phortune/subscription/'.$path; | ||||
} | } | ||||
} | } | ||||
protected function getBuiltinQueryNames() { | protected function getBuiltinQueryNames() { | ||||
$names = array( | $names = array( | ||||
'all' => pht('All Subscriptions'), | 'all' => pht('All Subscriptions'), | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |