Skip to content

Kirby 5.0.0

$sql->columnName()

Returns the cleaned identifier based on the table and column name

$sql->columnName(string $table, string $column, bool $enforceQualified = false): string|null

Parameters

Name Type Default Description
$tablerequired string no default value Table name
$columnrequired string no default value Column name
$enforceQualified bool false If true, a qualified identifier is returned in all cases

Return types

stringornull

Identifier or null if the table or column is invalid

Parent class

Kirby\Database\Sql