public function getColumns($table)
    {
        $table = str_replace("`", "", $table);

        $columns = Db::fetchAll("SHOW COLUMNS FROM `" . $table . "`");

        $columnNames = array();
        foreach ($columns as $column) {
            $columnNames[] = $column['Field'];
        }

        return $columnNames;
    }
public function getColumns($table)
    {
        $table = str_replace("`", "", $table);

        $columns = Db::fetchAll("SHOW COLUMNS FROM `" . $table . "`");

        $columnNames = array();
        foreach ($columns as $column) {
            $columnNames[] = $column['Field'];
        }

        return $columnNames;
    }
public function getColumns ( $ table ) { $ table = str_replace ( "`" , "" , $ table ) ; $ columns = Db :: fetchAll ( "SHOW COLUMNS FROM `" . $ table . "`" ) ; $ columnNames = array ( ) ; foreach ( $ columns as $ column ) { $ columnNames [ ] = $ column [ 'Field' ] ; } return $ columnNames ; }
Returns the list of column names for a table.

@param string $table Prefixed table name.
@return string[] List of column names..
Returns the list of column names for a table .