NAME
Pangloss::StoredObject::Common - common base class for some stored objects.
SYNOPSIS
# abstract - cannot be used
use base qw( Pangloss::StoredObject::Common );
$obj->name( $name )
->notes( $notes )
->creator( $user )
->date( time )
->validate;
# catch Pangloss::StoredObject::Errors
DESCRIPTION
Base class for stored objects in Pangloss.
METHODS
- $obj->name()
-
set/get name.
- $obj->notes()
-
set/get notes.
- $obj->creator()
-
set/get the Pangloss::User that created this object.
- $obj->date()
-
set/get modified date.
- $obj->copy( $obj2 )
-
copy name/notes/creator/date. returns this object.
- $obj->validate( [$errors] )
-
validate this object, or throw an error. returns itself. checks name/creator/date.
- $obj->throw_invalid_error( $errors )
-
abstract. throws appropriate Pangloss::StoredObject::Error.
AUTHOR
Steve Purkis <spurkis@quiup.com>