| Pangloss documentation | view source | Contained in the Pangloss distribution. |
Pangloss::Term::Status - the status of a term.
use Pangloss::Term::Status;
my $status = new Pangloss::Term::Status();
$status->pending()
->notes( $text )
->creator( $user )
->date( time );
do { ... } if $status->is_pending();
This class represents a status associated with a term. It inherits from Pangloss::StoredObject::Common.
The following flags are available as class variables:
PENDING APPROVED REJECTED DEPRECATED
They are also available as a hash with lowercase keys via $class->status_codes.
internal method to set/get status code.
set this status code to one of the above. At present, multiple flags can only be set (ie: approved | deprecated) by setting $obj->code directly.
test if this status code is one of the above.
Steve Purkis <spurkis@quiup.com>
| Pangloss documentation | view source | Contained in the Pangloss distribution. |