Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/storage/PhortuneAccount.php
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | final class PhortuneAccount extends PhortuneDAO | ||||
} | } | ||||
public function attachMemberPHIDs(array $phids) { | public function attachMemberPHIDs(array $phids) { | ||||
$this->memberPHIDs = $phids; | $this->memberPHIDs = $phids; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getURI() { | public function getURI() { | ||||
return '/phortune/'.$this->getID().'/'; | return urisprintf( | ||||
'/phortune/account/%d/', | |||||
$this->getID()); | |||||
} | } | ||||
public function getDetailsURI() { | public function getDetailsURI() { | ||||
return urisprintf( | return urisprintf( | ||||
'/phortune/account/%d/details/', | '/phortune/account/%d/details/', | ||||
$this->getID()); | $this->getID()); | ||||
} | } | ||||
public function getOrdersURI() { | |||||
return urisprintf( | |||||
'/phortune/account/%d/orders/', | |||||
$this->getID()); | |||||
} | |||||
public function getOrderListURI($path = '') { | |||||
return urisprintf( | |||||
'/phortune/account/%d/orders/list/%s', | |||||
$this->getID(), | |||||
$path); | |||||
} | |||||
public function getSubscriptionsURI() { | |||||
return urisprintf( | |||||
'/phortune/account/%d/subscriptions/', | |||||
$this->getID()); | |||||
} | |||||
public function getEmailAddressesURI() { | public function getEmailAddressesURI() { | ||||
return urisprintf( | return urisprintf( | ||||
'/phortune/account/%d/addresses/', | '/phortune/account/%d/addresses/', | ||||
$this->getID()); | $this->getID()); | ||||
} | } | ||||
public function getPaymentMethodsURI() { | public function getPaymentMethodsURI() { | ||||
return urisprintf( | return urisprintf( | ||||
'/phortune/account/%d/methods/', | '/phortune/account/%d/methods/', | ||||
$this->getID()); | $this->getID()); | ||||
} | } | ||||
public function getChargesURI() { | |||||
return urisprintf( | |||||
'/phortune/account/%d/charges/', | |||||
$this->getID()); | |||||
} | |||||
public function getChargeListURI($path = '') { | |||||
return urisprintf( | |||||
'/phortune/account/%d/charges/list/%s', | |||||
$this->getID(), | |||||
$path); | |||||
} | |||||
public function attachMerchantPHIDs(array $merchant_phids) { | public function attachMerchantPHIDs(array $merchant_phids) { | ||||
$this->merchantPHIDs = $merchant_phids; | $this->merchantPHIDs = $merchant_phids; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getMerchantPHIDs() { | public function getMerchantPHIDs() { | ||||
return $this->assertAttached($this->merchantPHIDs); | return $this->assertAttached($this->merchantPHIDs); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |