Contao\Database::getFieldNames PHP Méthode

getFieldNames() public méthode

Return the field names of a particular table as array
public getFieldNames ( string $strTable, boolean $blnNoCache = false ) : array
$strTable string The table name
$blnNoCache boolean If true, the cache will be bypassed
Résultat array An array of field names
    public function getFieldNames($strTable, $blnNoCache = false)
    {
        $arrNames = array();
        $arrFields = $this->listFields($strTable, $blnNoCache);
        foreach ($arrFields as $arrField) {
            if ($arrField['type'] != 'index') {
                $arrNames[] = $arrField['name'];
            }
        }
        return $arrNames;
    }