\ConnectionDetails
Connection (signup) details base class
Synopsis
class ConnectionDetails
{
- // constants
- const TABLE_CONDER = 'condet';
- const URL_ME = '?module=condetedit&username=';
- // members
- protected array $allDetails = ;
- protected $condetDb = '';
- // methods
- public void __construct()
- protected void initDb()
- protected void loadAllData()
- public array getByLogin()
- protected void create()
- public void delete()
- protected void update()
- public void set()
- public string editForm()
- public string renderData()
- public array getAllSeals()
- public array getAllData()
- public string renderReportBody()
- public string renderReportBodyUkv()
- public void ajaxGetData()
- public void ajaxGetDataUkv()
Constants
Name | Value |
---|---|
TABLE_CONDER | 'condet' |
URL_ME | '?module=condetedit&username=' |
Members
protected
Methods
protected
- create() — Creates new DB entry for some login
- initDb() — Inits database abstraction layer for further usage
- loadAllData() — Loads all connection details from database and stores into private prop as login=>dataarray
- update() — Updates existing DB entry for some login
public
- __construct() — Creates new condet instance
- ajaxGetData() — Returns JSON reply for jquery datatables with full list of available connection details
- ajaxGetDataUkv() — Returns JSON reply for jquery datatables with full list of available connection details
- delete() — Deletes signup details from database
- editForm() — Retuns connection details edit form
- getAllData() — Returns array of all existing details data as login=>condetData[seal,length,price,term]
- getAllSeals() — Returns array of all existing cable seals as login=>seal
- getByLogin() — Returns array of connection details by user login
- renderData() — Renders connection details data for profile and edit form
- renderReportBody() — Returns display container of available connection details
- renderReportBodyUkv() — Returns display container of available connection details
- set() — Sets login connection data into database in needed way