X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=Koha%2FCurbsidePickupPolicy.pm;h=07e0719d17002094ba028894c64399a81bd9cafe;hb=ebeb7e61614d8cf348a83ae187d23281f7521129;hp=118e178f498e5d14409d2f959160cb369d401462;hpb=2b1a0e9d0d163bd75f9a989ee6016a2fb7f3a546;p=koha-ffzg.git diff --git a/Koha/CurbsidePickupPolicy.pm b/Koha/CurbsidePickupPolicy.pm index 118e178f49..07e0719d17 100644 --- a/Koha/CurbsidePickupPolicy.pm +++ b/Koha/CurbsidePickupPolicy.pm @@ -47,6 +47,14 @@ sub library { return Koha::Library->_new_from_dbic( $rs ); } +=head3 opening_slots + +$policy->opening_slots + +Return the list of opening slots (Koha::CurbsidePickupOpeningSlots object) + +=cut + sub opening_slots { my ( $self ) = @_; my $rs = $self->_result->curbside_pickup_opening_slots; @@ -54,6 +62,14 @@ sub opening_slots { return Koha::CurbsidePickupOpeningSlots->_new_from_dbic( $rs ); } +=head3 add_opening_slot + +$policy->add("$d-12:00-15:00"); + +Add a new opening slot for this library. It must be formatted "day:start:end" with 'start' and 'end' in 24-hour format. + +=cut + sub add_opening_slot { my ( $self, $slot ) = @_;