class Triggers

PhpMyAdmin\Rte\Triggers class

Methods

__construct(DatabaseInterface $dbi)

Triggers constructor.

void
setGlobals()

Sets required globals

void
main()

Main function for the triggers functionality

void
handleEditor()

Handles editor requests for adding or editing an item

array
getDataFromRequest()

This function will generate the values that are required to for the editor

array|bool
getDataFromName(string $name)

This function will generate the values that are required to complete the "Edit trigger" form given the name of a trigger.

string
getEditorForm(string $mode, array $item)

Displays a form used to add/edit a trigger

string
getQueryFromRequest()

Composes the query necessary to create a trigger from an HTTP request.

Details

at line 59
__construct(DatabaseInterface $dbi)

Triggers constructor.

Parameters

DatabaseInterface $dbi DatabaseInterface object

at line 74
void setGlobals()

Sets required globals

Return Value

void

at line 95
void main()

Main function for the triggers functionality

Return Value

void

at line 122
void handleEditor()

Handles editor requests for adding or editing an item

Return Value

void

at line 292
array getDataFromRequest()

This function will generate the values that are required to for the editor

Return Value

array Data necessary to create the editor.

at line 318
array|bool getDataFromName(string $name)

This function will generate the values that are required to complete the "Edit trigger" form given the name of a trigger.

Parameters

string $name The name of the trigger.

Return Value

array|bool Data necessary to create the editor.

at line 355
string getEditorForm(string $mode, array $item)

Displays a form used to add/edit a trigger

Parameters

string $mode If the editor will be used to edit a trigger or add a new one: 'edit' or 'add'.
array $item Data for the trigger returned by getDataFromRequest() or getDataFromName()

Return Value

string HTML code for the editor.

at line 477
string getQueryFromRequest()

Composes the query necessary to create a trigger from an HTTP request.

Return Value

string The CREATE TRIGGER query.