|
Lines 237-243
sub last {
Link Here
|
| 237 |
return $object; |
237 |
return $object; |
| 238 |
} |
238 |
} |
| 239 |
|
239 |
|
|
|
240 |
=head3 empty |
| 240 |
|
241 |
|
|
|
242 |
my $empty_rs = Koha::Objects->new->empty; |
| 243 |
|
| 244 |
Sets the resultset empty. This is handy for consistency on method returns |
| 245 |
(e.g. if we know in advance we won't have results but want to keep returning |
| 246 |
an iterator). |
| 247 |
|
| 248 |
=cut |
| 249 |
|
| 250 |
sub empty { |
| 251 |
my ($self) = @_; |
| 252 |
|
| 253 |
$self->_resultset()->set_cache([]); |
| 254 |
|
| 255 |
return $self; |
| 256 |
} |
| 241 |
|
257 |
|
| 242 |
=head3 Koha::Objects->reset(); |
258 |
=head3 Koha::Objects->reset(); |
| 243 |
|
259 |
|
| 244 |
- |
|
|