Myco::Base::Entity::Event - a Myco entity class
0.01
$Revision$ $Date$
use Myco; # Constructors. See Myco::Base::Entity for more. my $obj = Myco::Base::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::Base::Entity.
Attributes may be initially set during object construction (with new()) but otherwise are accessed solely through accessor methods. Typical usage:
new()
Set attribute value
$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.
eval
Get attribute value
$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.
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.
To install Myco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Myco
CPAN shell
perl -MCPAN -e shell install Myco
For more information on module installation, please visit the detailed CPAN module installation guide.