Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/storage/PhortuneSubscription.php
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | public function getSubscriptionCrumbName() { | ||||
return $this->getImplementation()->getCrumbName($this); | return $this->getImplementation()->getCrumbName($this); | ||||
} | } | ||||
public function getCartName(PhortuneCart $cart) { | public function getCartName(PhortuneCart $cart) { | ||||
return $this->getImplementation()->getCartName($this, $cart); | return $this->getImplementation()->getCartName($this, $cart); | ||||
} | } | ||||
public function getURI() { | public function getURI() { | ||||
$account_id = $this->getAccount()->getID(); | return urisprintf( | ||||
$id = $this->getID(); | '/phortune/account/%d/subscriptions/%d/', | ||||
$this->getAccount()->getID(), | |||||
return "/phortune/{$account_id}/subscription/view/{$id}/"; | $this->getID()); | ||||
} | } | ||||
public function getEditURI() { | public function getEditURI() { | ||||
$account_id = $this->getAccount()->getID(); | $account_id = $this->getAccount()->getID(); | ||||
$id = $this->getID(); | $id = $this->getID(); | ||||
return "/phortune/{$account_id}/subscription/edit/{$id}/"; | return "/phortune/{$account_id}/subscription/edit/{$id}/"; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |