final class Events (View source)

Functions for event management.

Constants

STATUS

TYPE

INTERVAL

Methods

__construct(DatabaseInterface $dbi, Config $config)

No description

string
handleEditor(string $itemQuery, ServerRequest $request)

Handles editor requests for adding or editing an item

array
getDataFromRequest(ServerRequest $request)

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

array|null
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
getQueryFromRequest(ServerRequest $request)

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

string
getEventSchedulerStatus()

No description

array
getDetails(string $db, string $name = '')

Returns details about the EVENTs for a specific database.

static string|null
getDefinition(DatabaseInterface $dbi, string $db, string $name)

No description

string|null
getEventDefinition(string $db, string $name)

No description

bool
hasEventPrivilege(DatabaseName $databaseName)

No description

int
getErrorCount()

No description

Details

__construct(DatabaseInterface $dbi, Config $config)

No description

Parameters

DatabaseInterface $dbi
Config $config

string handleEditor(string $itemQuery, ServerRequest $request)

Handles editor requests for adding or editing an item

Parameters

string $itemQuery
ServerRequest $request

Return Value

string

array getDataFromRequest(ServerRequest $request)

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

Parameters

ServerRequest $request

Return Value

array

Data necessary to create the editor.

array|null 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|null

Data necessary to create the editor.

string getQueryFromRequest(ServerRequest $request)

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

Parameters

ServerRequest $request

Return Value

string

The CREATE EVENT query.

string getEventSchedulerStatus()

No description

Return Value

string

array getDetails(string $db, string $name = '')

Returns details about the EVENTs for a specific database.

Parameters

string $db

db name

string $name

event name

Return Value

array

information about EVENTs

static string|null getDefinition(DatabaseInterface $dbi, string $db, string $name)

No description

Parameters

DatabaseInterface $dbi
string $db
string $name

Return Value

string|null

string|null getEventDefinition(string $db, string $name)

No description

Parameters

string $db
string $name

Return Value

string|null

bool hasEventPrivilege(DatabaseName $databaseName)

No description

Parameters

DatabaseName $databaseName

Return Value

bool

int getErrorCount()

No description

Return Value

int