From 1e8e4887de2e713d57b16da183c306936d08058d Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 21 Aug 2008 15:13:06 +0000 Subject: [PATCH] added a method to return the org unit closed dates git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@10397 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Actor.pm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm index f1f65fd0fe..24784e4c77 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm @@ -3051,5 +3051,24 @@ sub create_user_opt_in_at_org { } +__PACKAGE__->register_method ( + method => 'retrieve_org_hours', + api_name => 'open-ils.actor.org_unit.hours_of_operation.retrieve', + signature => q/ + Returns the hours of operation for a specified org unit + @param authtoken The login session key + @param org_id The org_unit ID + / +); + +sub retrieve_org_hours { + my($self, $conn, $auth, $org_id) = @_; + my $e = new_editor(authtoken => $auth); + return $e->die_event unless $e->checkauth; + $org_id ||= $e->requestor->ws_ou; + return $e->retrieve_actor_org_unit_hours_of_operation($org_id); +} + + 1; -- 2.11.0