From 8de553b4487e8af993ae49a90dbf27d95b7d9b96 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 21 Sep 2005 19:25:19 +0000 Subject: [PATCH] generic place to add template plugin methods git-svn-id: svn://svn.open-ils.org/ILS/trunk@1848 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../OpenILS/Template/Plugin/WebUtils.pm | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebUtils.pm diff --git a/Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebUtils.pm b/Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebUtils.pm new file mode 100644 index 0000000000..6637e55a6d --- /dev/null +++ b/Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebUtils.pm @@ -0,0 +1,27 @@ +package OpenILS::Template::Plugin::WebUtils; +use strict; use warnings; +use OpenILS::Utils::Fieldmapper; + +use Template::Plugin; +use base qw/Template::Plugin/; +use OpenSRF::AppSession; +use OpenSRF::System; +use XML::LibXML; +use OpenSRF::Utils::SettingsParser; + +sub new { + my ($class) = @_; + $class = ref($class) || $class; + my $self = {}; + return bless($self,$class); +} + + +sub XML2perl { + my( $self, $doc ) = @_; + return OpenSRF::Utils::SettingsParser::XML2perl($doc); +} + + + +1; -- 2.43.2