$mysql->columnName()
Returns the cleaned identifier based on the table and column name
$mysql->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
string
ornull
Identifier or null if the table or column is invalid
This method modifies the existing $mysql
object it is applied to and returns it again.
Parent class
Kirby\Database\Sql\Mysql
inherited from Kirby\Database\Sql