\DeferredSale
Deferred sales basic implementation
Synopsis
class DeferredSale
{
- // constants
- const PROUTE_RUN = 'dsalerun';
- const PROUTE_SUMM = 'dsalesumm';
- const PROUTE_TERM = 'dsaleterm';
- const PROUTE_NOTE = 'dsalenote';
- const NOTE_PREFIX = 'DEFSALE:';
- // members
- protected integer $minMonth = 1;
- protected integer $maxMonth = 12;
- protected string $login = '';
- // methods
- public void __construct()
- protected void setLogin()
- protected array getTermsArr()
- public string renderForm()
- public void/string catchRequest()
Constants
Name | Value |
---|---|
PROUTE_RUN | 'dsalerun' |
PROUTE_SUMM | 'dsalesumm' |
PROUTE_TERM | 'dsaleterm' |
PROUTE_NOTE | 'dsalenote' |
NOTE_PREFIX | 'DEFSALE:' |
Members
protected
- $login
—
string
Contains current instance user login - $maxMonth
—
int
Maximum sale term in months - $minMonth
—
int
Minimum sale term in months
Methods
protected
- getTermsArr() — Returns months term array for term selector
- setLogin() — Sets current instance user login
public
- __construct()
- catchRequest() — Catches sale request and performs sale
- renderForm() — Returns deferred sale form