\TurboUsersList
TurboUsersList class provides high-performance user list server-side rendering and filtering functionality
Synopsis
class TurboUsersList
{
- // constants
- const URL_ME = '?module=online';
- // members
- protected array $altCfg = ;
- protected integer $onPage = 50;
- protected integer $totalUsersCount = 0;
- protected integer $filteredUsersCount = 0;
- protected array $allDnUsers = ;
- protected array $wholeUsers = ;
- protected bool $financesFlag = false;
- // methods
- public void __construct()
- protected void loadConfig()
- protected string getCustomStyling()
- protected void loadAllDnUsers()
- public string renderUsersListContainer()
- protected string getActivityLabel()
- protected string getUserControls()
- protected string getUserDnLabel()
- public void usersLoader()
- public void jsonUserList()
Constants
| Name | Value |
|---|---|
| URL_ME | '?module=online' |
Members
protected
- $allDnUsers
—
array
Contains all DN true-online users - $altCfg
—
array
Contains system alter config as key=>value - $filteredUsersCount
—
int
Contains filtered users count - $financesFlag
—
bool
Contains finances column rendering flag - $onPage
—
int
Default on-page users count - $totalUsersCount
—
int
Contains count of users available - $wholeUsers
—
array
Contains preloaded users data
Methods
protected
- getActivityLabel() — Returns HTML label indicating user activity status
- getCustomStyling() — Returns custom CSS styling for the users list table
- getUserControls() — Returns HTML controls (links) for user actions
- getUserDnLabel() — Returns HTML label indicating user DN (true-online) status
- loadAllDnUsers() — Loads all DN (true-online) users into protected property
- loadConfig() — Loads system configuration and sets feature flags
public
- __construct() — Creates new TurboUsersList instance and loads configuration
- jsonUserList() — Generates JSON response for DataTables with filtered user data
- renderUsersListContainer() — Renders the main users list interface with DataTables integration
- usersLoader() — Performs users filtering, ordering and load for ajax list