Active conferences (#7684)
* Add active conferences with web sockets * Buttons mostly working * Convert all methods, function, variable, const to snake case instead of standards. * Add default settings for customized control * Add customizable settings * More debugging default settings added * Add better authentication handling for websocket connections These methods were added: - on_ws_authenticated can be overridden in the child class if there are tasks that need to be done after authentication. - handle_ws_authenticated was added in the parent class Handle methods are called by the this class and then their respective 'on_ws_' method is then called. * Mute All now working * Add PHPDoc block comments * More PHPDoc to better describe class and variables * Fix accidental removal of function during PHPDoc block edits * Remove the variable type declaration for PHP 7.1 compatibility * Update conferences with more websocket communication to replace AJAX calls. * Ensure interface is loaded when no members * Move color settings to theme category * Update page view to default settings changes
This commit is contained in:
@@ -954,6 +954,18 @@ abstract class service {
|
||||
self::log($message, LOG_DEBUG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the service is running in debug mode (LOG_DEBUG level).
|
||||
*
|
||||
* This is useful for security checks where certain features should only
|
||||
* be available when the service is explicitly started with debug logging.
|
||||
*
|
||||
* @return bool True if the service is running at LOG_DEBUG level
|
||||
*/
|
||||
public static function is_debug_mode(): bool {
|
||||
return self::$log_level === LOG_DEBUG;
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs a message at the INFO level.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user