class MultSubmits

Functions for multi submit forms

Methods

__construct()

MultSubmits constructor.

array
getUrlParams(string $what, bool $reload, string $action, string $db, string $table, array $selected, array|null $views, string $originalSqlQuery, string $originalUrlQuery)

Gets url params

array
buildOrExecuteQuery(string $queryType, array $selected, string $db, string $table, array|null $views, string $primary, string $fromPrefix, string $toPrefix)

Builds or execute queries for multiple elements, depending on $queryType

string
getHtmlForCopyMultipleTables(string $action, array $urlParams)

Gets HTML for copy tables form

string
getHtmlForReplacePrefixTable(string $action, array $urlParams)

Gets HTML for replace_prefix_tbl or copy_tbl_change_prefix

string
getHtmlForAddPrefixTable(string $action, array $urlParams)

Gets HTML for add_prefix_tbl

string
getHtmlForOtherActions(string $what, string $action, array $urlParams, string $fullQuery)

Gets HTML for other mult_submits actions

array
getQueryFromSelected(string $what, string $table, array $selected, array $views)

Get query string from Selected

Details

at line 38
__construct()

MultSubmits constructor.

at line 61
array getUrlParams(string $what, bool $reload, string $action, string $db, string $table, array $selected, array|null $views, string $originalSqlQuery, string $originalUrlQuery)

Gets url params

Parameters

string $what mult submit type
bool $reload is reload
string $action action type
string $db database name
string $table table name
array $selected selected rows(table,db)
array|null $views table views
string $originalSqlQuery original sql query
string $originalUrlQuery original url query

Return Value

array

at line 122
array buildOrExecuteQuery(string $queryType, array $selected, string $db, string $table, array|null $views, string $primary, string $fromPrefix, string $toPrefix)

Builds or execute queries for multiple elements, depending on $queryType

Parameters

string $queryType query type
array $selected selected tables
string $db db name
string $table table name
array|null $views table views
string $primary table primary
string $fromPrefix from prefix original
string $toPrefix to prefix original

Return Value

array

at line 398
string getHtmlForCopyMultipleTables(string $action, array $urlParams)

Gets HTML for copy tables form

Parameters

string $action action type
array $urlParams URL params

Return Value

string

at line 444
string getHtmlForReplacePrefixTable(string $action, array $urlParams)

Gets HTML for replace_prefix_tbl or copy_tbl_change_prefix

Parameters

string $action action type
array $urlParams URL params

Return Value

string

at line 478
string getHtmlForAddPrefixTable(string $action, array $urlParams)

Gets HTML for add_prefix_tbl

Parameters

string $action action type
array $urlParams URL params

Return Value

string

at line 509
string getHtmlForOtherActions(string $what, string $action, array $urlParams, string $fullQuery)

Gets HTML for other mult_submits actions

Parameters

string $what mult_submit type
string $action action type
array $urlParams URL params
string $fullQuery full sql query string

Return Value

string

at line 549
array getQueryFromSelected(string $what, string $table, array $selected, array $views)

Get query string from Selected

Parameters

string $what mult_submit type
string $table table name
array $selected the selected columns
array $views table views

Return Value

array