| Pangloss documentation | Contained in the Pangloss distribution. |
Pangloss::Segment::Decline::NoPager - decline unless there's a search results pager in the store
$pipe->add_segment( Pangloss::Segment::NoPager->new )
Declines if there is no Pangloss::Search::Results::Pager object in the store.
Steve Purkis <spurkis@quiup.com>
| Pangloss documentation | Contained in the Pangloss distribution. |
package Pangloss::Segment::Decline::NoPager; use base qw( OpenFrame::WebApp::Segment::Decline ); our $VERSION = ((require Pangloss::Version), $Pangloss::VERSION)[1]; our $REVISION = (split(/ /, ' $Revision: 1.1 $ '))[2]; sub should_decline { my $self = shift; $self->store->get('Pangloss::Search::Results::Pager') ? 0 : 1; } 1; __END__ #------------------------------------------------------------------------------