Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/query/PhortuneCartSearchEngine.php
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | final class PhortuneCartSearchEngine | ||||
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/orders/'.$merchant->getID().'/'.$path; | return $merchant->getOrderListURI($path); | ||||
} else if ($account) { | } else if ($account) { | ||||
return $account->getOrderListURI($path); | return $account->getOrderListURI($path); | ||||
} else { | } else { | ||||
return '/phortune/order/'.$path; | return '/phortune/order/'.$path; | ||||
} | } | ||||
} | } | ||||
protected function getBuiltinQueryNames() { | protected function getBuiltinQueryNames() { | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |