InsertEdit
class InsertEdit (View source)
Constants
private FUNC_OPTIONAL_PARAM |
|
private FUNC_NO_PARAM |
|
Methods
No description
Retrieve form parameters for insert/edit form
Show type information or function selectors in Insert/Edit
check whether the column is of a certain type the goal is to ensure that types such as "enum('one','two','binary',..)" or "enum('one','two','varbinary',..)" are not categorized as binary
get html for continue insertion form
No description
set $_SESSION for edit_next
set $goto_include variable for different cases and retrieve like, if UrlParams::$goto empty, if $goto_include previously not defined and new_insert, same_insert, edit_next
Defines the url to return in case of failure of the query
Executes the sql query and get the result, then move back to the calling page
Column to display from the foreign table?
Display option in the cell according to user choices
Transform edited values
Get query values array and query fields array for insert and update in multi edit
Check whether inline edited value can be truncated or not, and add additional parameters for extra_data array if needed
Function to get the columns of a table
Function to determine Insert/Edit rows
Function to get comments for the table columns
Function to get html for the ignore option in insert mode
Function to get html for the insert edit form header
Function to get html for each insert/edit row
No description
Details
__construct(DatabaseInterface $dbi, Relation $relation, Transformations $transformations, FileListing $fileListing, Template $template, Config $config)
No description
array
getFormParametersForInsertForm(string $db, string $table, array|null $whereClauses, array $whereClauseArray, string $errorUrl)
Retrieve form parameters for insert/edit form
string
showTypeOrFunction(string $which, array $urlParams, bool $isShow)
Show type information or function selectors in Insert/Edit
bool
isColumn(string $columnType, array $types)
check whether the column is of a certain type the goal is to ensure that types such as "enum('one','two','binary',..)" or "enum('one','two','varbinary',..)" are not categorized as binary
string
getContinueInsertionForm(string $table, string $db, array $whereClauseArray, string $errorUrl)
get html for continue insertion form
static bool
isWhereClauseNumeric(array|string|null $whereClause)
No description
void
setSessionForEditNext(string $oneWhereClause)
set $_SESSION for edit_next
string
getGotoInclude(string|false $gotoInclude)
set $goto_include variable for different cases and retrieve like, if UrlParams::$goto empty, if $goto_include previously not defined and new_insert, same_insert, edit_next
string
getErrorUrl(array $urlParams)
Defines the url to return in case of failure of the query
array
executeSqlQuery(array $query)
Executes the sql query and get the result, then move back to the calling page
string
getDisplayValueForForeignTableColumn(string $whereComparison, array $foreigners, string $relationField)
Column to display from the foreign table?
string
getLinkForRelationalDisplayField(array $foreigners, string $relationField, string $whereComparison, string $dispval, string $relationFieldValue)
Display option in the cell according to user choices
array
transformEditedValues(string $db, string $table, array $transformation, array $editedValues, string $file, string $columnName, array $extraData, string $type)
Transform edited values
string
getQueryValueForInsert(EditField $editField, bool $usingKey, string|int $whereClause)
Get query values array and query fields array for insert and update in multi edit
string
getQueryValueForUpdate(EditField $editField)
Get field-value pairs for update SQL.
During update, we build the SQL only with the fields that should be updated.
void
verifyWhetherValueCanBeTruncatedAndAppendExtraData(string $db, string $table, string $columnName, array $extraData)
Check whether inline edited value can be truncated or not, and add additional parameters for extra_data array if needed
array
getTableColumns(string $db, string $table)
Function to get the columns of a table
array
determineInsertOrEdit(array|string|null $whereClause, string $db, string $table)
Function to determine Insert/Edit rows
array
getCommentsMap(string $db, string $table)
Function to get comments for the table columns
string
getHtmlForIgnoreOption(int $rowId, bool $checked = true)
Function to get html for the ignore option in insert mode
string
getHtmlForInsertEditFormHeader(bool $hasBlobField, bool $isUpload)
Function to get html for the insert edit form header
string
getHtmlForInsertEditRow(array $urlParams, array $tableColumns, array $commentsMap, ResultInterface $currentResult, bool $insertMode, array $currentRow, bool $isUpload, array $foreigners, string $table, string $db, int $rowId, array $repopulate, array $whereClauseArray)
Function to get html for each insert/edit row
array
getColumnDefaultValues(string $database, string $table)
No description