Skip to content

Kirby 5.0.4

$query->table()

Sets the name of the table, which should be queried

$query->table(string $table): Kirby\Database\Query

Parameters

Name Type Default
$tablerequired string no default value

Return type

Kirby\Database\Query

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

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException if the table does not exist

Parent class

Kirby\Database\Query