class General

PhpMyAdmin\Rte\General class

Methods

__construct(DatabaseInterface $dbi)

General constructor.

array
checkResult(resource|bool $result, string $error, string $createStatement, array $errors)

Check result

void
sendEditor(string $type, string $mode, array $item, string $title, string $db, string $operation = null)

Send TRI or EVN editor via ajax or by echoing.

Details

at line 33
__construct(DatabaseInterface $dbi)

General constructor.

Parameters

DatabaseInterface $dbi DatabaseInterface object

at line 48
array checkResult(resource|bool $result, string $error, string $createStatement, array $errors)

Check result

Parameters

resource|bool $result Query result
string $error Error to add
string $createStatement Query
array $errors Errors

Return Value

array

at line 79
void sendEditor(string $type, string $mode, array $item, string $title, string $db, string $operation = null)

Send TRI or EVN editor via ajax or by echoing.

Parameters

string $type TRI or EVN
string $mode Editor mode 'add' or 'edit'
array $item Data necessary to create the editor
string $title Title of the editor
string $db Database
string $operation Operation 'change' or ''

Return Value

void