class Events

PhpMyAdmin\Rte\Events class

Methods

__construct(DatabaseInterface $dbi)

Events constructor.

void
setGlobals()

Sets required globals

void
main()

Main function for the events 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 event" form given the name of a event.

string
getEditorForm(string $mode, string $operation, array $item)

Displays a form used to add/edit an event

string
getQueryFromRequest()

Composes the query necessary to create an event from an HTTP request.

Details

at line 59
__construct(DatabaseInterface $dbi)

Events constructor.

Parameters

DatabaseInterface $dbi DatabaseInterface object

at line 74
void setGlobals()

Sets required globals

Return Value

void

at line 118
void main()

Main function for the events functionality

Return Value

void

at line 146
void handleEditor()

Handles editor requests for adding or editing an item

Return Value

void

at line 314
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 351
array|bool getDataFromName(string $name)

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

Parameters

string $name The name of the event.

Return Value

array|bool Data necessary to create the editor.

at line 404
string getEditorForm(string $mode, string $operation, array $item)

Displays a form used to add/edit an event

Parameters

string $mode If the editor will be used to edit an event or add a new one: 'edit' or 'add'.
string $operation If the editor was previously invoked with JS turned off, this will hold the name of the current operation
array $item Data for the event returned by getDataFromRequest() or getDataFromName()

Return Value

string HTML code for the editor.

at line 596
string getQueryFromRequest()

Composes the query necessary to create an event from an HTTP request.

Return Value

string The CREATE EVENT query.