Ben Sommer > Myco-1.22 > Myco::Entity::Event

Download:
Myco-1.22.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Myco::Entity::Event - a Myco entity class

SYNOPSIS ^

  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;

DESCRIPTION ^

An Event logging class for recording information and history for selected objects

COMMON ENTITY INTERFACE ^

Constructor, accessors, and other methods -- as inherited from Myco::Entity.

ATTRIBUTES ^

Attributes may be initially set during object construction (with new()) but otherwise are accessed solely through accessor methods. Typical usage:

A listing of available attributes follows:

kind

 type: int

The kind of the event. Could be 'Create', 'Delete', or 'Modify'

state

 type: perl_dump

A string dump of the Entity at time of Event creation.

entity_id

 type: int

The Tangram ID for the entity.

user_src

 type: ref

The Myco::User object that created (sourced) the entity.

entity_class

 type: string

The name of the class of the entity.

date

 type: rawdate

The date the event was occured.

entity

 type: transient

The entity object about which an event is being recorded. Intitalized with a reference to it.

syntax highlighting: