PMA\libraries\DatabaseInterface::getTableIndexes PHP Méthode

getTableIndexes() public méthode

Returns indexes of a table
public getTableIndexes ( string $database, string $table, mixed $link = null ) : array
$database string name of database
$table string name of the table whose indexes are to be retrieved
$link mixed mysql link resource
Résultat array $indexes
    public function getTableIndexes($database, $table, $link = null)
    {
        $sql = $this->getTableIndexesSql($database, $table);
        $indexes = $this->fetchResult($sql, null, null, $link);
        if (!is_array($indexes) || count($indexes) < 1) {
            return array();
        }
        return $indexes;
    }