$skip
$skip : integer
An helper class used to modify the result set of a database read operation.
initialize(array|null $init = null) : \self
Initialize a new result modifier using the initializer data.
$resultFilter = ResultModifier::initialize([
'limit' => 5,
'skip' => 8,
'name' => FieldOrdering::ASC
]);
array|null | $init | the initializer data |
the initializer data is not valid
the initialized result modifier
order(string $field, integer $order) : \Gishiki\Database\Runtime\ResultModifier
Change the order of elements in the result set.
string | $field | the name of the field to be used for ordering |
integer | $order | the order to be applied (one of FieldOrdering consts) |
passed input is not valid or incompatible type
the modified filter
limit(integer $limit = -1) : \Gishiki\Database\Runtime\ResultModifier
Change the limit of the elements in the result set.
integer | $limit | the maximum number of results that can be fetched from the database |
passed input is not valid or incompatible type
the modified filter
skip(integer $offset = -1) : \Gishiki\Database\Runtime\ResultModifier
Change the offset of elements in the result set.
integer | $offset | the offset to be applied |
passed input is not valid or incompatible type
the modified filter