Browse Source

Bug 20415: Add POD

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
tags/v20.05.00
parent
commit
f00eda15f0
Signed by: martin.renvoize <martin.renvoize@ptfs-europe.com> GPG Key ID: 422B469130441A0F
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      Koha/Template/Plugin/Koha.pm

+ 17
- 1
Koha/Template/Plugin/Koha.pm View File

@@ -24,7 +24,11 @@ use base qw( Template::Plugin );
use C4::Context;
use Koha;

=pod
=head1 NAME

Koha::Template::Plugin::Koha - General Koha Template Toolkit plugin

=head1 SYNOPSIS

This plugin contains various Koha replated Template Toolkit functions
to help streamline Koha and to move logic from the Perl code into the
@@ -40,6 +44,12 @@ is necessary.

=cut

=head1 API

=head2 Class Methods

=cut

sub Preference {
my ( $self, $pref ) = @_;
return C4::Context->preference( $pref );
@@ -58,6 +68,12 @@ sub Version {
};
}

=head3 ArePluginsEnabled

Returns true if plugins are enabled, false otherwise.

=cut

sub ArePluginsEnabled {
return C4::Context->config('enable_plugins');
}


Loading…
Cancel
Save