Méthode |
Description |
|
__construct ( array $params = [] ) |
Constructor |
|
addColumn ( array $params ) : void |
Add column to index |
|
addColumns ( array $columns ) : void |
Adds a list of columns to the index |
|
findDuplicates ( string $table, string $schema ) : string |
Function to check over array of indexes and look for common problems |
|
generateIndexChoiceSelector ( boolean $edit_table ) : string |
Returns HTML for the index choice selector |
|
generateIndexTypeSelector ( ) : string |
Returns HTML for the index type selector |
|
getChoice ( ) : string |
Returns index choice (PRIMARY, UNIQUE, INDEX, SPATIAL, FULLTEXT) |
|
getColumnCount ( ) : integer |
Returns the number of columns of the index |
|
getColumns ( ) : PMA\libraries\IndexColumn[] |
Returns the columns of the index |
|
getComment ( ) : string |
Returns the index comment |
|
getComments ( ) : string |
Returns concatenated remarks and comment |
|
getCompareData ( ) : array |
Gets the properties in an array for comparison purposes |
|
getFromTable ( string $table, string $schema ) : Index[] |
returns an array with all indexes from the given table |
|
getFromTableByChoice ( string $table, string $schema, integer $choices = 31 ) : Index[] |
Returns an array with all indexes from the given table of the requested types |
|
getHtmlForIndexes ( string $table, string $schema, boolean $print_mode = false ) : string |
Show index data |
|
getIndexChoices ( ) : string[] |
Return a list of all index choices |
|
getIndexTypes ( ) : string[] |
Returns a lit of all index types |
|
getKeyBlockSize ( ) : number |
Return the key block size |
|
getName ( ) : string |
Returns the name of the index |
|
getNonUnique ( ) : integer |
Returns integer 0 if the index cannot contain duplicates, 1 if it can |
|
getPacked ( ) : string |
Returns how the index is packed |
|
getParser ( ) : string |
Return the parser |
|
getPrimary ( string $table, string $schema ) : mixed |
return primary if set, false otherwise |
|
getRemarks ( ) : string |
Returns index remarks |
|
getType ( ) : string |
Returns index type (BTREE, HASH, RTREE) |
|
hasColumn ( string $column ) : boolean |
Returns true if $column indexed in this index |
|
isPacked ( ) : string |
Returns 'No' if the index is not packed,
how the index is packed if packed |
|
isUnique ( boolean $as_text = false ) : mixed |
Returns whether the index is a 'Unique' index |
|
set ( array $params ) : void |
Sets index details |
|
setName ( string $name ) : void |
Sets the name of the index |
|
singleton ( string $schema, string $table, string $index_name = '' ) : Index |
Creates(if not already created) and returns the corresponding Index object |
|