| Myco documentation | view source | Contained in the Myco distribution. |
Myco::Entity::Event - a Myco entity class
use Myco; # Constructors. See Myco::Entity for more. my $obj = Myco::Entity::Event->new; # Accessors. my $value = $obj->get_fooattrib; $obj->set_fooattrib($value); $obj->save; $obj->destroy;
An Event logging class for recording information and history for selected objects
Constructor, accessors, and other methods -- as inherited from Myco::Entity.
Attributes may be initially set during object construction (with new()) but
otherwise are accessed solely through accessor methods. Typical usage:
$obj->set_attribute($value);
Check functions (see Class::Tangram) perform data
validation. If there is any concern that the set method might be called with
invalid data then the call should be wrapped in an eval block to catch
exceptions that would result.
$value = $obj->get_attribute;
A listing of available attributes follows:
type: int
The kind of the event. Could be 'Create', 'Delete', or 'Modify'
type: perl_dump
A string dump of the Entity at time of Event creation.
type: int
The Tangram ID for the entity.
type: ref
The Myco::User object that created (sourced) the entity.
type: string
The name of the class of the entity.
type: rawdate
The date the event was occured.
type: transient
The entity object about which an event is being recorded. Intitalized with a reference to it.
| Myco documentation | view source | Contained in the Myco distribution. |