| Pangloss documentation | Contained in the Pangloss distribution. |
Pangloss::Segment::Decline::NoCategory - decline unless there's a category in the store
$pipe->add_segment( Pangloss::Segment::NoCategory->new )
Inherits from OpenFrame::WebApp::Segment::Decline.
Steve Purkis <spurkis@quiup.com>
| Pangloss documentation | Contained in the Pangloss distribution. |
package Pangloss::Segment::Decline::NoCategory; use base qw( OpenFrame::WebApp::Segment::Decline ); our $VERSION = ((require Pangloss::Version), $Pangloss::VERSION)[1]; our $REVISION = (split(/ /, ' $Revision: 1.2 $ '))[2]; sub should_decline { my $self = shift; $self->store->get('Pangloss::Category') ? 0 : 1; } 1; __END__ #------------------------------------------------------------------------------