public function getFieldNames(string
$table) { // Is there a cached result?
if (isset($this->dataCache
['field_names'
][$table])) { return $this->dataCache
['field_names'
][$table];
} if (!
$this->connID instanceof SQLite3
) { $this->
initialize();
} $sql =
$this->
_listColumns($table);
$query =
$this->
query($sql);
$this->dataCache
['field_names'
][$table] =
[];
foreach ($query->
getResultArray() as $row) { // Do we know from where to get the column's name?
if (!
isset($key)) { if (isset($row['column_name'
])) { $key = 'column_name';
} elseif (isset($row['COLUMN_NAME'
])) { $key = 'COLUMN_NAME';
}