Koha::Objects - Koha Object set base class
use Koha::Objects; my @objects = Koha::Objects->search({ borrowernumber => $borrowernumber});
This class must be subclassed.
my $object = Koha::Objects->new();
my $object = Koha::Objects->_new_from_dbic( $resultset );
my $object = Koha::Objects->find($id); my $object = Koha::Objects->find( { keypart1 => $keypart1, keypart2 => $keypart2 } );
my $object = Koha::Objects->find_or_create( $attrs );
my @objects = Koha::Objects->search($params);
my @objects = Koha::Objects->count($params);
my $pager = Koha::Objects->pager;
my $object = Koha::Objects->next();
Returns the next object that is part of this set. Returns undef if there are no more objects to return.
Koha::Objects->reset();
resets iteration so the next call to next() will start agein with the first object in a set.
Koha::Objects->as_list();
Returns an arrayref of the objects in this set.
Returns an unblessed representation of objects.
wraps the DBIC object in a corresponding Koha object
Returns the internal resultset or creates it if undefined
The _type method must be set for all child classes. The value returned by it should be the DBIC resultset name. For example, for holds, _type should return 'Reserve'.
This method must be set for all child classes. The value returned by it should be the name of the Koha object class that is returned by this class. For example, for holds, object_class should return 'Koha::Hold'.
Kyle M Hall <kyle@bywatersolutions.com>