CentralColumns
class CentralColumns (View source)
Properties
Template | $template |
Methods
Defines the central_columns parameters for the current user
get $num columns of given database from central columns list starting at offset $from
Get the number of columns present in central list for given db
If $isTable is true then unique columns from given tables as $field_select are added to central list otherwise the $field_select is considered as list of columns and these columns are added to central list if not already added
if $isTable is true it removes all columns of given tables as $field_select from central columns list otherwise $field_select is columns list and it removes given columns if present in central list
Make the columns of given tables consistent with central list of columns.
return the columns present in central list of columns for a given table of a given database
update a column in central columns list if a edit is requested
Update Multiple column in central columns list if a change is requested
get the list of columns in given database excluding the columns present in current table
Get HTML for editing page central columns
get number of columns of given database from central columns list starting at offset $from
No description
Adding a new user defined column to central list
Details
__construct(DatabaseInterface $dbi)
No description
array|bool
getParams()
Defines the central_columns parameters for the current user
array
getColumnsList(string $db, int $from = 0, int $num = 25)
get $num columns of given database from central columns list starting at offset $from
int
getCount(string $db)
Get the number of columns present in central list for given db
true|Message
syncUniqueColumns(array $field_select, bool $isTable = true, string|null $table = null)
If $isTable is true then unique columns from given tables as $field_select are added to central list otherwise the $field_select is considered as list of columns and these columns are added to central list if not already added
true|Message
deleteColumnsFromList(string $database, array $field_select, bool $isTable = true)
if $isTable is true it removes all columns of given tables as $field_select from central columns list otherwise $field_select is columns list and it removes given columns if present in central list
true|Message
makeConsistentWithList(string $db, array $selected_tables)
Make the columns of given tables consistent with central list of columns.
Updates only those columns which are not being referenced.
array
getFromTable(string $db, string $table, bool $allFields = false)
return the columns present in central list of columns for a given table of a given database
true|Message
updateOneColumn(string $db, string $orig_col_name, string $col_name, string $col_type, string $col_attribute, string $col_length, int $col_isNull, string $collation, string $col_extra, string $col_default)
update a column in central columns list if a edit is requested
true|Message
updateMultipleColumn(array $params)
Update Multiple column in central columns list if a change is requested
array
getListRaw(string $db, string $table)
get the list of columns in given database excluding the columns present in current table
string
getHtmlForEditingPage(array $selected_fld, string $selected_db)
Get HTML for editing page central columns
int
getColumnsCount(string $db, int $from = 0, int $num = 25)
get number of columns of given database from central columns list starting at offset $from
array
getColumnsNotInCentralList(string $db, string $table)
No description
array
getTemplateVariablesForMain(string $db, int $total_rows, int $pos, string $text_dir)
Adding a new user defined column to central list