Skip to content

Kirby 5.0.4

$mysql->validateColumn()

Validates a given column name in a table

$mysql->validateColumn(string $table, string $column): bool

Parameters

Name Type Default
$tablerequired string no default value
$columnrequired string no default value

Return type

bool

This method modifies the existing $mysql object it is applied to and returns it again.

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the column is invalid

Parent class

Kirby\Database\Sql\Mysql inherited from Kirby\Database\Sql