class Triggers (View source)

Functions for trigger management.

Constants

private EVENTS

Methods

__construct(DatabaseInterface $dbi)

No description

string
handleEditor()

Handles editor requests for adding or editing an item

Trigger|null
getTriggerByName(string $db, string $table, string $name)

No description

string
getQueryFromRequest()

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

static array
getDetails(DatabaseInterface $dbi, string $db, string $table = '')

Returns details about the TRIGGERs for a specific table or database.

array
getTables(string $db)

No description

Details

__construct(DatabaseInterface $dbi)

No description

Parameters

DatabaseInterface $dbi

string handleEditor()

Handles editor requests for adding or editing an item

Return Value

string

Trigger|null getTriggerByName(string $db, string $table, string $name)

No description

Parameters

string $db
string $table
string $name

Return Value

Trigger|null

Data necessary to create the editor.

string getQueryFromRequest()

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

Return Value

string

The CREATE TRIGGER query.

static array getDetails(DatabaseInterface $dbi, string $db, string $table = '')

Returns details about the TRIGGERs for a specific table or database.

Parameters

DatabaseInterface $dbi
string $db
string $table

Return Value

array

array getTables(string $db)

No description

Parameters

string $db

Return Value

array