Bearsampp 2026.3.26
API documentation
Loading...
Searching...
No Matches
ActionDebugMariadb Class Reference
Inheritance diagram for ActionDebugMariadb:

Protected Member Functions

 getBinInstance ($bearsamppBins)
 getCommandMapping ()
 getServiceLangConstant ()
Protected Member Functions inherited from ActionDebugBase
 hasContentKey ()
 isSyntaxCheckCommand ($command)

Additional Inherited Members

Public Member Functions inherited from ActionDebugBase
 __construct ($args)

Detailed Description

Class ActionDebugMariadb

This class handles debugging actions for MariaDB within the Bearsampp application. It processes command-line arguments to determine the type of debugging action to perform, retrieves the corresponding output from MariaDB, and displays it using the appropriate method.

Definition at line 17 of file class.action.debugMariadb.php.

Member Function Documentation

◆ getBinInstance()

getBinInstance ( $bearsamppBins)
protected

Get the MariaDB binary instance

Parameters
object$bearsamppBinsThe bins object containing all service binaries
Returns
BinMariadb The MariaDB binary instance

Reimplemented from ActionDebugBase.

Definition at line 35 of file class.action.debugMariadb.php.

36 {
37 return $bearsamppBins->getMariadb();
38 }
global $bearsamppBins

References $bearsamppBins.

◆ getCommandMapping()

getCommandMapping ( )
protected

Get the command-to-caption mapping for MariaDB

Returns
array Command mapping configuration

Reimplemented from ActionDebugBase.

Definition at line 45 of file class.action.debugMariadb.php.

46 {
47 return [
50 'editor' => false
51 ],
54 'editor' => true
55 ],
58 'editor' => false,
59 'syntaxCheck' => true
60 ]
61 ];
62 }
const DEBUG_MARIADB_VARIABLES
const DEBUG_MARIADB_SYNTAX_CHECK
const DEBUG_MARIADB_VERSION

References BinMariadb\CMD_SYNTAX_CHECK, BinMariadb\CMD_VARIABLES, BinMariadb\CMD_VERSION, Lang\DEBUG_MARIADB_SYNTAX_CHECK, Lang\DEBUG_MARIADB_VARIABLES, and Lang\DEBUG_MARIADB_VERSION.

◆ getServiceLangConstant()

getServiceLangConstant ( )
protected

Get the service name for language strings

Returns
string The language constant name for MariaDB

Reimplemented from ActionDebugBase.

Definition at line 24 of file class.action.debugMariadb.php.

25 {
26 return 'MARIADB';
27 }

The documentation for this class was generated from the following file: