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

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 ActionDebugMysql

This class handles the debugging actions for MySQL within the Bearsampp application. It executes specific MySQL commands and displays the output in a message box or editor.

Definition at line 16 of file class.action.debugMysql.php.

Member Function Documentation

◆ getBinInstance()

getBinInstance ( $bearsamppBins)
protected

Get the MySQL binary instance

Parameters
object$bearsamppBinsThe bins object containing all service binaries
Returns
BinMysql The MySQL binary instance

Reimplemented from ActionDebugBase.

Definition at line 34 of file class.action.debugMysql.php.

35 {
36 return $bearsamppBins->getMysql();
37 }
global $bearsamppBins

References $bearsamppBins.

◆ getCommandMapping()

getCommandMapping ( )
protected

Get the command-to-caption mapping for MySQL

Returns
array Command mapping configuration

Reimplemented from ActionDebugBase.

Definition at line 44 of file class.action.debugMysql.php.

45 {
46 return [
49 'editor' => false
50 ],
53 'editor' => true
54 ],
57 'editor' => false,
58 'syntaxCheck' => true
59 ]
60 ];
61 }
const CMD_SYNTAX_CHECK
const CMD_VERSION
const CMD_VARIABLES
const DEBUG_MYSQL_SYNTAX_CHECK
const DEBUG_MYSQL_VERSION
const DEBUG_MYSQL_VARIABLES

References BinMysql\CMD_SYNTAX_CHECK, BinMysql\CMD_VARIABLES, BinMysql\CMD_VERSION, Lang\DEBUG_MYSQL_SYNTAX_CHECK, Lang\DEBUG_MYSQL_VARIABLES, and Lang\DEBUG_MYSQL_VERSION.

◆ getServiceLangConstant()

getServiceLangConstant ( )
protected

Get the service name for language strings

Returns
string The language constant name for MySQL

Reimplemented from ActionDebugBase.

Definition at line 23 of file class.action.debugMysql.php.

24 {
25 return 'MYSQL';
26 }

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