Pangloss::Segment::Decline::NoUser - decline unless there's a user in the store


Pangloss documentation Contained in the Pangloss distribution.

Index


Code Index:

NAME

Top

Pangloss::Segment::Decline::NoUser - decline unless there's a user in the store

SYNOPSIS

Top

  $pipe->add_segment( Pangloss::Segment::NoUser->new )

DESCRIPTION

Top

This class inherits its interface from OpenFrame::WebApp::Segment::Decline and OpenFrame::WebApp::Segment::User::Session.

AUTHOR

Top

Steve Purkis <spurkis@quiup.com>

SEE ALSO

Top

Pangloss::User


Pangloss documentation Contained in the Pangloss distribution.
package Pangloss::Segment::Decline::NoUser;

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

our $VERSION  = ((require Pangloss::Version), $Pangloss::VERSION)[1];
our $REVISION = (split(/ /, ' $Revision: 1.4 $ '))[2];

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

1;

__END__

#------------------------------------------------------------------------------