\DebtrsArch
Debtors archive implementation
Synopsis
class DebtrsArch
{
- // constants
- const TABLE_ARCH = 'debtrsarch';
- const URL_ME = '?module=debtrsarch';
- const ROUTE_ARCH = 'listpoints';
- const ROUTE_TIMEPOINT = 'rendertimepoint';
- const ROUTE_DIFF = 'diffpoints';
- const PROUTE_DIFF_ONE = 'diffone';
- const PROUTE_DIFF_TWO = 'difftwo';
- const PROUTE_NOFROZEN = 'excludefrozen';
- // members
- protected array $allUsersData = ;
- protected $debtrsDb = '';
- protected array $currentDebtors = ;
- protected $messages = '';
- protected string $dtUsOpts = 'order: [[ 0, "asc" ]], dom: \'<"F"lfB>rti<"F"ps>\', buttons: [\'csv\', \'excel\', \'pdf\', \'print\']';
- // methods
- public void __construct()
- protected void initDb()
- protected void initMessages()
- protected void loadUserData()
- protected void loadCurrentDebtors()
- public void storeCurrentDebtors()
- public array getArchiveTimePoints()
- public string renderArchive()
- public array getTimePointData()
- public string renderTimePoint()
- public string renderControls()
- public string renderDiffForm()
- public string compareTimePoints()
Constants
| Name | Value |
|---|---|
| TABLE_ARCH | 'debtrsarch' |
| URL_ME | '?module=debtrsarch' |
| ROUTE_ARCH | 'listpoints' |
| ROUTE_TIMEPOINT | 'rendertimepoint' |
| ROUTE_DIFF | 'diffpoints' |
| PROUTE_DIFF_ONE | 'diffone' |
| PROUTE_DIFF_TWO | 'difftwo' |
| PROUTE_NOFROZEN | 'excludefrozen' |
Members
protected
Methods
protected
- initDb() — Inits database abstraction layer for further usage
- initMessages() — Inits system messages helper instance for further usage
- loadCurrentDebtors() — Loads current debtors from database into protected prop for further usage
- loadUserData() — Loads all users data from database into protected prop for further usage
public
- __construct() — You see no pain in my eyes That is just my clever disguise I will not cry to you You will not see the truth
- compareTimePoints() — Compares two time points and displays diff results
- getArchiveTimePoints() — Returns array of all archive time points
- getTimePointData() — Returns time point data by its ID from database
- renderArchive() — Renders archive container with time points list
- renderControls() — Renders module controls panel
- renderDiffForm() — Renders compare form by two time points
- renderTimePoint() — Renders time point data report
- storeCurrentDebtors() — Stores current debtors into database