\UbillingTaskbar
Taskbar loading and rendering class
Synopsis
class UbillingTaskbar
{
- // constants
- const BASE_PATH = 'config/taskbar.d/';
- const WIDGETS_CODEPATH = 'config/taskbar.d/widgets/';
- const URL_ME = '?module=taskbar';
- const ROUTE_WS = 'welcomescreen';
- const ROUTE_DISABLE_WS = 'disablewelcomescreen';
- // members
- protected array $altCfg = ;
- protected array $billCfg = ;
- protected $messages = '';
- protected array $categories = ;
- protected array $iconSizes = ;
- protected string $currentAlerts = '';
- protected array $loadedElements = ;
- protected string $taskbarContent = '';
- // methods
- public void __construct()
- protected void loadConfigs()
- protected void initMessages()
- protected void setCategories()
- protected void setIconSizes()
- protected void setLogin()
- protected string renderIconElement()
- protected string buildElement()
- protected string loadCategoryElements()
- protected string loadAllCategories()
- protected string renderResizeForm()
- protected void catchIconsizeChange()
- protected void loadUbim()
- protected string loadStickyNotes()
- protected void checkSecurity()
- protected void renderWelcome()
- protected string loadAnnouncements()
- protected string loadPollVoteAdmin()
- protected string loadTouchFix()
- public string renderTaskbar()
Constants
Name | Value |
---|---|
BASE_PATH | 'config/taskbar.d/' |
WIDGETS_CODEPATH | 'config/taskbar.d/widgets/' |
URL_ME | '?module=taskbar' |
ROUTE_WS | 'welcomescreen' |
ROUTE_DISABLE_WS | 'disablewelcomescreen' |
Members
protected
- $altCfg
—
array
Contains system alter config as key=>value - $billCfg
—
array
Contains system billing config as key=>value - $categories
—
array
Contains currently loaded categories as dir=>name - $currentAlerts
—
string
Contains current run alerts if available - $iconSizes
—
array
Contains available icon sizes as size=>name - $loadedElements
—
array
Contains full list of loaded taskbar elements - $messages
—
Message helper object placeholder - $taskbarContent
—
string
Taskbar elements rendered content
Methods
protected
- buildElement() — Checks element required rights, options and returns element content
- catchIconsizeChange() — Catches and applies icon resize event
- checkSecurity() — Checks for default password usage, etc.
- initMessages() — Inits system message helper object
- loadAllCategories() — Loads and try to render all of available taskbar categories
- loadAnnouncements() — Renders administrators announcements if some unread is present/sets read some of them
- loadCategoryElements() — Loads and returns category taskbar elements
- loadConfigs() — Loads system alter and billing configs into protected properties
- loadPollVoteAdmin() — Renders administrators voting poll form
- loadStickyNotes() — Returs available sticky notes if enabled
- loadTouchFix() — Returns touch devices hotfix for draggable and other JQuery UI things
- loadUbim() — Renders instant messenger notification
- renderIconElement() — Renders taskbar icon element
- renderResizeForm() — Returns icon resize form if enabled
- renderWelcome() — Renders some welcome screen for newly installed Ubilling
- setCategories() — Sets available taskbar element categories
- setIconSizes() — Sets available icon sizes
- setLogin() — Sets current administrators login into protected prof for further usage
public
- __construct() — Creates new taskbar instance
- renderTaskbar() — Returns rendered taskbar elements and services content