PaymentListTrait uses trait:short
Table of Contents
Properties
- $advert : Advert|null
- $currency : Currency|null
- $loggedUser : User|null
- $paymentGateId : int|null
- $paymentGateList : array<int, PaymentGate>
- $paymentRegion : PaymentRegion|null
Methods
- actionList() : void
- actionPaymentRegionList() : void
- renderList() : void
- renderPaymentRegionList() : void
- checkAndSetSelectedPaymentRegionFromUrl() : void
- getSelectedPaymentGateId() : int|null
- prepareCurrency() : void
- preparePaymentGates() : void
- prepareTariffs() : void
- Loads the active tariffs of the module into `$this->tariffList` (declared by the presenter with the tariff type of its module).
Properties
$advert
private
Advert|null
$advert
= null
$currency
private
Currency|null
$currency
= null
$loggedUser
private
User|null
$loggedUser
= null
$paymentGateId
private
int|null
$paymentGateId
= null
$paymentGateList
private
array<int, PaymentGate>
$paymentGateList
= []
$paymentRegion
private
PaymentRegion|null
$paymentRegion
= null
Methods
actionList()
public
actionList(mixed $slug[, int|null $id = null ]) : void
Parameters
- $slug : mixed
- $id : int|null = null
actionPaymentRegionList()
public
actionPaymentRegionList(mixed $slug, int|null $id) : void
Parameters
- $slug : mixed
- $id : int|null
renderList()
public
renderList(mixed $slug[, int|null $id = null ]) : void
Parameters
- $slug : mixed
- $id : int|null = null
renderPaymentRegionList()
public
renderPaymentRegionList(mixed $slug[, int|null $id = null ]) : void
Parameters
- $slug : mixed
- $id : int|null = null
checkAndSetSelectedPaymentRegionFromUrl()
private
checkAndSetSelectedPaymentRegionFromUrl(int $advertId) : void
Parameters
- $advertId : int
getSelectedPaymentGateId()
private
getSelectedPaymentGateId() : int|null
Return values
int|nullprepareCurrency()
private
prepareCurrency() : void
preparePaymentGates()
private
preparePaymentGates() : void
prepareTariffs()
Loads the active tariffs of the module into `$this->tariffList` (declared by the presenter with the tariff type of its module).
private
prepareTariffs() : void