| Pangloss documentation | Contained in the Pangloss distribution. |
Pangloss::Segment::ListCategories - list categories.
$pipe->add_segment( Pangloss::Segment::ListCategories->new )
Uses the pangloss category editor app to load a list of categories, and returns the resulting view or error.
Steve Purkis <spurkis@quiup.com>
| 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__ #------------------------------------------------------------------------------