The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Pangloss::Application::TermEditor - term editor app for Pangloss.

SYNOPSIS

  use Pangloss::Application::TermEditor;
  my $editor = new Pangloss::Application::TermEditor();

  my $view0 = $editor->list();
  my $view1 = $editor->list_status_codes();
  my $view2 = $editor->add( $term );
  my $view3 = $editor->get( $key );
  my $view4 = $editor->modify( $key, $new_term );
  my $view5 = $editor->modify_status( $key, $new_status );
  my $view6 = $editor->remove( $key );

DESCRIPTION

This class implements a term editor application for Pangloss.

Inherits from Pangloss::Application::CollectionEditor.

METHODS

$view = $obj->list_status_codes( [ $view ] )

sets $view->{status_codes} to a hash of available status codes:

  pending
  approved
  rejected
  deprecated
$view = $obj->modify_status( $key, $status [, $view ] );

modifies the status of the term specified by $key, and sets $view->{term} $view->{modify}->{term}, $view->{term}->status->{modified}.

AUTHOR

Steve Purkis <spurkis@quiup.com>

SEE ALSO

Pangloss, Pangloss::Term, Pangloss::Term::Status