File Coverage

blib/lib/WE_Frontend/Plugin/WE_Navigation.pm
Criterion Covered Total %
statement 9 16 56.2
branch n/a
condition 0 6 0.0
subroutine 3 5 60.0
pod 2 2 100.0
total 14 29 48.2


line stmt bran cond sub pod time code
1             # -*- perl -*-
2              
3             #
4             # $Id: WE_Navigation.pm,v 1.11 2005/03/02 12:20:01 eserte Exp $
5             # Author: Slaven Rezic
6             #
7             # Copyright (C) 2002 Online Office Berlin. All rights reserved.
8             # Copyright (C) 2002 Slaven Rezic.
9             # This is free software; you can redistribute it and/or modify it under the
10             # terms of the GNU General Public License, see the file COPYING.
11              
12             #
13             # Mail: slaven@rezic.de
14             # WWW: http://we-framework.sourceforge.net
15             #
16              
17             package WE_Frontend::Plugin::WE_Navigation;
18 1     1   1325 use base qw(WE_Frontend::Plugin::Navigation);
  1         3  
  1         498  
19              
20 1     1   7 use strict;
  1         2  
  1         31  
21 1     1   5 use vars qw($VERSION);
  1         3  
  1         175  
22             $VERSION = sprintf("%d.%02d", q$Revision: 1.11 $ =~ /(\d+)\.(\d+)/);
23              
24             require WE_Frontend::Plugin::WE_Navigation::Object;
25              
26             sub new {
27 0     0 1   my($class, $context, $params) = @_;
28 0   0       $params ||= {};
29 0           my $self = $class->SUPER::new($context, $params);
30 0   0       $self->{Config} = $params->{config} || eval { $context->stash->get("config") } || {};
31 0   0       $self->{LocalConfig} = $params->{localconfig} || eval { $context->stash->get("localconfig") } || {};
32 0           bless $self, $class;
33             }
34              
35             sub Object {
36 0     0 1   "WE_Frontend::Plugin::WE_Navigation::Object";
37             }
38              
39             1;
40              
41             __END__