Pangloss::Segment::ListCategories - list categories.


Pangloss documentation Contained in the Pangloss distribution.

Index


Code Index:

NAME

Top

Pangloss::Segment::ListCategories - list categories.

SYNOPSIS

Top

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

DESCRIPTION

Top

Uses the pangloss category editor app to load a list of categories, and returns the resulting view or error.

AUTHOR

Top

Steve Purkis <spurkis@quiup.com>

SEE ALSO

Top

Pangloss::Application


Pangloss documentation Contained in the Pangloss distribution.
package Pangloss::Segment::ListCategories;

use Pangloss::Category;

use base qw( Pipeline::Segment );

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

sub dispatch {
    my $self = shift;
    my $app  = $self->store->get('Pangloss::Application') || return;
    my $view = $self->store->get('Pangloss::Application::View');
    return $app->category_editor->list( $view );
}

1;

__END__

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