\DreamKasNotifications
DreamKas notification area
Synopsis
class DreamKasNotifications
{
- // constants
- const URL_NOTIFICATIONS = '?module=dreamkas&getnotys=true';
- const DREAMKAS_NOTYS_CAHCE_KEY = 'DREAMKAS_NOTIFICATIONS';
- // members
- protected $ubConfig = NULL;
- protected $ubCache = NULL;
- protected bool $notysEnabled = false;
- protected integer $notysPollingInterval = 8000;
- protected integer $notysPopupTimeout = 10000;
- protected bool $notysEverywhere = true;
- protected bool $notysOnDesktop = false;
- protected array $notysAdminsAllowed = ;
- protected integer $cachingTimeout = 8;
- protected string $curAdminLogin = '';
- // methods
- public void __construct()
- protected void loadOptions()
- public void getDreamkasNotifications()
- protected string getDreamkasNotificationsJS()
- public string/void renderWidget()
Constants
Name | Value |
---|---|
URL_NOTIFICATIONS | '?module=dreamkas&getnotys=true' |
DREAMKAS_NOTYS_CAHCE_KEY | 'DREAMKAS_NOTIFICATIONS' |
Members
protected
- $cachingTimeout
—
int
Caching timeout based on polling interval in seconds. - $curAdminLogin
—
string
Contains current instance admin user login - $notysAdminsAllowed
—
array
Placeholder for DREAMKAS_ADMINS_ALLOWED alter.ini option - $notysEnabled
—
bool
Placeholder for DREAMKAS_NOTIFICATIONS_ENABLED alter.ini option - $notysEverywhere
—
bool
Placeholder for DREAMKAS_NOTIFY_ANYWHERE alter.ini option - $notysOnDesktop
—
bool
Placeholder for DREAMKAS_DESKTOP_NOTIFICATIONS alter.ini option - $notysPollingInterval
—
int
Placeholder for DREAMKAS_CACHE_CHECK_INTERVAL alter.ini option - $notysPopupTimeout
—
int
Placeholder for DREAMKAS_POPUP_TIMEOUT alter.ini option - $ubCache
—
null
UbillingCache instance placeholder - $ubConfig
—
null
UbillingConfig object placeholder
Methods
protected
- getDreamkasNotificationsJS() — Returns notification frontend with some background polling
- loadOptions() — Getting an alter.ini options
public
- __construct()
- getDreamkasNotifications()
- renderWidget() — Renders widget code if it required for current situation