| 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 | ▶ | use base qw(WE_Frontend::Plugin::Navigation); | ||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||
| 20 | 1 | ▶ | use strict; | ||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 21 | 1 | ▶ | use vars qw($VERSION); | ||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 22 | 1 | $VERSION = sprintf("%d.%02d", q$Revision: 1.11 $ =~ /(\d+)\.(\d+)/); | |||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||
| 24 | 1 | require WE_Frontend::Plugin::WE_Navigation::Object; | |||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||
| 26 | 0 | ▶ | sub new { | ||||||||||||||||||||||
|
Subroutine
new: not called CC=6 SCAR=37.4
Pod
documented
| |||||||||||||||||||||||||
| 27 | 0 | my($class, $context, $params) = @_; | |||||||||||||||||||||||
| 28 | 0 | ▶ | $params ||= {}; | ||||||||||||||||||||||
|
Condition0%0/2
$params ||= {}
MC/DC0%0/1
$params ||= {}
$params
Truth table0%0/2
A
A= $params
| |||||||||||||||||||||||||
| 29 | 0 | my $self = $class->SUPER::new($context, $params); | |||||||||||||||||||||||
| 30 | 0 | ▶ | $self->{Config} = $params->{config} || eval { $context->stash->get("config") } || {}; | ||||||||||||||||||||||
|
Condition0%0/5
$params->{'config'} || eval {
do {
$context->stash->get('config')
}
} || {}
$params->{"config"} or eval {
do {
$context->stash->get("config")
}
}
MC/DC0%0/2
$params->{'config'} || eval {
do {
$context->stash->get('config')
}
} || {}
$params->{"config"}
eval {
do {
$context->stash->get("config")
}
}
Truth table0%0/3
A or B
A= $params->{"config"}B= eval {
do {
$context->stash->get("config")
}
}
| |||||||||||||||||||||||||
| 31 | 0 | ▶ | $self->{LocalConfig} = $params->{localconfig} || eval { $context->stash->get("localconfig") } || {}; | ||||||||||||||||||||||
|
Condition0%0/5
$params->{'localconfig'} || eval {
do {
$context->stash->get('localconfig')
}
} || {}
$params->{"localconfig"} or eval {
do {
$context->stash->get("localconfig")
}
}
MC/DC0%0/2
$params->{'localconfig'} || eval {
do {
$context->stash->get('localconfig')
}
} || {}
$params->{"localconfig"}
eval {
do {
$context->stash->get("localconfig")
}
}
Truth table0%0/3
A or B
A= $params->{"localconfig"}B= eval {
do {
$context->stash->get("localconfig")
}
}
| |||||||||||||||||||||||||
| 32 | 0 | bless $self, $class; | |||||||||||||||||||||||
| 33 | } | ||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||
| 35 | 0 | ▶ | sub Object { | ||||||||||||||||||||||
|
Subroutine
Object: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||
| 36 | 0 | "WE_Frontend::Plugin::WE_Navigation::Object"; | |||||||||||||||||||||||
| 37 | } | ||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||
| 39 | 1 | 1; | |||||||||||||||||||||||
| 40 | |||||||||||||||||||||||||
| 41 | __END__ | ||||||||||||||||||||||||