\CallMeBack
callback service implementation
Synopsis
class CallMeBack
{
- // constants
- const URL_ME = '?module=callmeback';
- const URL_USERPROFILE = '?module=userprofile&username=';
- // members
- protected $calls = '';
- protected $telepathy = '';
- protected array $allAddress = ;
- // methods
- public void __construct()
- protected void initCalls()
- protected void initTelepathy()
- protected void loadAddressData()
- protected array getUndoneCalls()
- protected array getDoneCalls()
- public void createCall()
- public void setCallState()
- public int getUndoneCount()
- protected array getDoneCallsCount()
- protected string getUserLinkByPhone()
- public string renderUndoneCalls()
- public string renderPanel()
- public string renderProcessedCalls()
- protected string getStateLabel()
- public void getAjProcessedList()
Constants
Name | Value |
---|---|
URL_ME | '?module=callmeback' |
URL_USERPROFILE | '?module=userprofile&username=' |
Members
protected
Methods
protected
- getDoneCalls() — Returns all processed calls array as id=>calldata
- getDoneCallsCount() — Returns all processed calls count
- getStateLabel() — Performs formatting/localizing call state
- getUndoneCalls() — Returns array of all calls which required some reaction as id=>calldata
- getUserLinkByPhone() — Try to detect user by its mobile and returns its navigation control
- initCalls() — Inits calls model for further usage
- initTelepathy() — Inits system telepaty class
- loadAddressData() — Loads address data required for user telepathy into protected property
public
- __construct() — Creates new callmeback instance
- createCall() — Create some callback record in database for further employee reactions.
- getAjProcessedList() — Renders processed calls JSON data
- getUndoneCount() — Returns unprocessed calls count
- renderPanel() — Returns main module control panel
- renderProcessedCalls() — Renders processed calls container
- renderUndoneCalls() — Renders undone calls with some controls
- setCallState() — Sets call state in database