|
Bearsampp 2026.3.26
API documentation
|
Public Member Functions | |
| __construct ($args) | |
Protected Member Functions | |
| getBinInstance ($bearsamppBins) | |
| getCommandMapping () | |
| getServiceLangConstant () | |
| hasContentKey () | |
| isSyntaxCheckCommand ($command) | |
Class ActionDebugBase
Base class for debugging actions across different services (MySQL, MariaDB, Apache, PostgreSQL). This class provides common functionality for executing debug commands and displaying their output. Child classes need to implement service-specific methods to define their behavior.
Definition at line 19 of file class.action.debugBase.php.
| __construct | ( | $args | ) |
Constructor for debug actions.
| array | $args | An array of arguments where the first element is the command to execute. |
This constructor handles the common debugging workflow:
Definition at line 75 of file class.action.debugBase.php.
References $bearsamppBins, $bearsamppLang, Lang\DEBUG, getBinInstance(), getCommandMapping(), getServiceLangConstant(), hasContentKey(), isSyntaxCheckCommand(), and Util\openFileContent().
|
abstractprotected |
Get the binary instance for this service
| object | $bearsamppBins | The bins object containing all service binaries |
Reimplemented in ActionDebugApache, ActionDebugMariadb, ActionDebugMysql, and ActionDebugPostgresql.
References $bearsamppBins.
Referenced by __construct().
|
abstractprotected |
Get the command-to-caption mapping for this service Returns an array where keys are command constants and values are arrays with:
Reimplemented in ActionDebugApache, ActionDebugMariadb, ActionDebugMysql, and ActionDebugPostgresql.
Referenced by __construct(), and isSyntaxCheckCommand().
|
abstractprotected |
Get the service name for language strings (e.g., 'MYSQL', 'APACHE', 'MARIADB', 'POSTGRESQL')
Reimplemented in ActionDebugApache, ActionDebugMariadb, ActionDebugMysql, and ActionDebugPostgresql.
Referenced by __construct().
|
protected |
Check if the debug output has a 'content' key (for services that return arrays) or if it's a direct string (for services like PostgreSQL)
Reimplemented in ActionDebugPostgresql.
Definition at line 56 of file class.action.debugBase.php.
Referenced by __construct().
|
protected |
Check if the given command is a syntax check command
| string | $command | The command to check |
Definition at line 136 of file class.action.debugBase.php.
References getCommandMapping().
Referenced by __construct().