- COMMON ENTITY INTERFACE
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:
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
evalblock to catch exceptions that would result.
Get attribute value
$value = $obj->get_attribute;
A listing of available attributes follows:
The kind of the event. Could be 'Create', 'Delete', or 'Modify'
A string dump of the Entity at time of Event creation.
The Tangram ID for the entity.
The Myco::User object that created (sourced) the entity.
The name of the class of the entity.
The date the event was occured.
The entity object about which an event is being recorded. Intitalized with a reference to it.