From 1e9b6e0e2aab88da4930e7cc35d0bec9c0c59f77 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 14 Oct 2020 13:01:38 +0100 Subject: [PATCH] Bug 24786: (QA follow-up) POD Fixes Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- Koha/Template/Plugin/Registers.pm | 32 ++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Koha/Template/Plugin/Registers.pm b/Koha/Template/Plugin/Registers.pm index d68c834e0a..313a2b11eb 100644 --- a/Koha/Template/Plugin/Registers.pm +++ b/Koha/Template/Plugin/Registers.pm @@ -17,6 +17,22 @@ package Koha::Template::Plugin::Registers; # You should have received a copy of the GNU General Public License # along with Koha; if not, see . +=head1 NAME + +Koha::Template::Plugin::Registers + +=head1 DESCRIPTION + +The Registers plugin is a helper that returns register related session information for templates + +=head1 SYNOPSIS + + [% USE Registers %] + [% SET registers = Registers.all() %] + [% SET registers = Registers.all( { filters => { current_branch => 1 } } ); + +=cut + use Modern::Perl; use Template::Plugin; @@ -26,6 +42,14 @@ use C4::Koha; use C4::Context; use Koha::Cash::Registers; +=head1 FUNCTIONS + +=head2 session_register_id + +Return the register_id for the register attached to the current session. + +=cut + sub session_register_id { my ($self) = @_; @@ -34,6 +58,12 @@ sub session_register_id { ''; } +=head2 session_register_name + +Return the register_name for the register attached to the current session. + +=cut + sub session_register_name { my ($self) = @_; @@ -42,7 +72,7 @@ sub session_register_name { : ''; } -=head2 +=head2 all [% SET registers = Registers.all() %] [% SET registers = Registers.all( { filters => { current_branch => 1 } } ); -- 2.39.5