CentralColumns
class CentralColumns (View source)
Properties
Template | $template |
Methods
Returns the configuration storage settings for central columns or false if no storage is available
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
return the existing columns in central list among the given list of columns
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.
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|false
getParams()
Returns the configuration storage settings for central columns or false if no storage is available
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
array
findExistingColNames(string $db, array $cols)
return the existing columns in central list among the given list of columns
Message
syncUniqueColumns(DatabaseName $databaseName, array $fieldSelect, bool $isTable = true, string $containingTable = '')
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
Message
deleteColumnsFromList(string $database, array $fieldSelect, 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
Message
makeConsistentWithList(string $db, array $selectedTables)
Make the columns of given tables consistent with central list of columns.
Updates only those columns which are not being referenced.
Message
updateOneColumn(string $db, string $origColName, string $colName, string $colType, string $colAttribute, string $colLength, bool $colIsNull, string $collation, string $colExtra, string $colDefault)
update a column in central columns list if a edit is requested
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 $selectedFld, string $selectedDb)
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 $totalRows, int $pos)
Adding a new user defined column to central list