Skip to content

Kirby 5.0.4

$query->iterator()

Sets the iterator class, which should be used for multiple results Set this to array to get a simple array instead of an iterator object

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

Parameters

Name Type Default
$iteratorrequired string no default value

Return type

Kirby\Database\Query

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

Parent class

Kirby\Database\Query