Solstice::NavigationService - A service for all types of navigation up a controller chain.


Solstice documentation Contained in the Solstice distribution.

Index


Code Index:

NAME

Top

Solstice::NavigationService - A service for all types of navigation up a controller chain.

SYNOPSIS

Top

  use Solstice::NavigationService;

  my $navigation_service = Solstice::NavigationService->new();
  $navigation_service->setView($view);




DESCRIPTION

Top

This is a service for putting app specific nav(any view really) at the top of a screen.

Superclass

Solstice::Service

Export

No symbols exported.

Methods

new()

Creates a new Solstice::NavigationService, tied to an Apache thread wide base of navigation.

setView($view)

Sets the view to the service.

Modules Used

Solstice::Service.

AUTHOR

Top

Catalyst Group, <catalyst@u.washington.edu>

VERSION

Top

$Revision: 3364 $

COPYRIGHT

Top


Solstice documentation Contained in the Solstice distribution.
package Solstice::NavigationService;

# $Id: NavigationService.pm 3364 2006-05-05 07:18:21Z mcrawfor $

use 5.006_000;
use strict;
use warnings;

use constant APP_NAVIGATION => '_app_navigation_';
use constant BREADCRUMB_NAVIGATION => '_breadcrumb_navigation_';

use Solstice::Service;

our ($VERSION) = ('$Revision: 3364 $' =~ /^\$Revision:\s*([\d.]*)/);
our @ISA = qw(Solstice::Service);

sub new {
    my $obj = shift;
    return $obj->SUPER::new(@_);
}

sub setView {
    my $self = shift;
    my $view = shift;

    $self->set(APP_NAVIGATION, $view);
    return 1;
}

sub getView {
    my $self = shift;
    return $self->get(APP_NAVIGATION);
}

sub setBreadcrumbView {
    my $self = shift;
    my $view = shift;

    $self->set(BREADCRUMB_NAVIGATION, $view);
    return 1;
}

sub getBreadcrumbView {
    my $self = shift;
    return $self->get(BREADCRUMB_NAVIGATION);
}


1;
__END__