OpenFrame::WebApp::Segment::Decline::SessionInStore - decline if Session found in store


OpenFrame-WebApp documentation Contained in the OpenFrame-WebApp distribution.

Index


Code Index:

NAME

Top

OpenFrame::WebApp::Segment::Decline::SessionInStore - decline if Session found in store

SYNOPSIS

Top

  # see OpenFrame::WebApp::Segment::Decline

DESCRIPTION

Top

Decline to process this pipe if a registered OpenFrame::WebApp::Session is found in the store.

AUTHOR

Top

Steve Purkis <spurkis@epn.nu>

COPYRIGHT

Top

SEE ALSO

Top

OpenFrame::WebApp::Segment::Decline, OpenFrame::WebApp::Segment::Session


OpenFrame-WebApp documentation Contained in the OpenFrame-WebApp distribution.
package OpenFrame::WebApp::Segment::Decline::SessionInStore;

use strict;
use warnings::register;

use Pipeline::Production;
use OpenFrame::WebApp::Error::Abstract;

our $VERSION = (split(/ /, '$Revision: 1.1 $'))[1];

use base qw( OpenFrame::WebApp::Segment::Decline OpenFrame::WebApp::Segment::Session );

use constant message => 'declined: session in store';

sub should_decline {
    my $self = shift;
    return $self->get_session_from_store ? 1 : 0;
}


1;

__END__