protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $subscription = $this->subscription; $merchant = $this->merchant; if ($merchant) { $id = $merchant->getID(); $this->addMerchantCrumb($crumbs, $merchant); if (!$subscription) { $crumbs->addTextCrumb(pht('Orders'), $this->getApplicationURI("merchant/orders/{$id}/")); } } $account = $this->account; if ($account) { $id = $account->getID(); $this->addAccountCrumb($crumbs, $account); if (!$subscription) { $crumbs->addTextCrumb(pht('Orders'), $this->getApplicationURI("{$id}/order/")); } } if ($subscription) { if ($merchant) { $subscription_uri = $subscription->getMerchantURI(); } else { $subscription_uri = $subscription->getURI(); } $crumbs->addTextCrumb($subscription->getSubscriptionName(), $subscription_uri); } return $crumbs; }
protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $account = $this->account; if ($account) { $id = $account->getID(); $crumbs->addTextCrumb($account->getName(), $this->getApplicationURI("{$id}/")); $crumbs->addTextCrumb(pht('Charges'), $this->getApplicationURI("{$id}/charge/")); } return $crumbs; }
protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $merchant = $this->merchant; if ($merchant) { $id = $merchant->getID(); $this->addMerchantCrumb($crumbs, $merchant); $crumbs->addTextCrumb(pht('Subscriptions'), $this->getApplicationURI("merchant/subscriptions/{$id}/")); } $account = $this->account; if ($account) { $id = $account->getID(); $this->addAccountCrumb($crumbs, $account); $crumbs->addTextCrumb(pht('Subscriptions'), $this->getApplicationURI("{$id}/subscription/")); } return $crumbs; }
protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $crumbs->addTextCrumb(pht('Merchants'), $this->getApplicationURI('merchant/')); return $crumbs; }
protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $crumbs->addAction(id(new PHUIListItemView())->setIcon('fa-exchange')->setHref($this->getApplicationURI('account/'))->setName(pht('Switch Accounts'))); return $crumbs; }