Dave Rolsky > Fey-ORM-Mock-0.05 > Fey::ORM::Mock::Recorder

Download:
Fey-ORM-Mock-0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.05   Source   Latest Release: Fey-ORM-Mock-0.06

NAME ^

Fey::ORM::Mock::Recorder - Records the history of changes for a class

VERSION ^

version 0.05

DESCRIPTION ^

This object is used to store a record of the changes for each class.

METHODS ^

This class provides the following methods:

Fey::ORM::Mock::Recorder->new()

Returns a new recorder object.

$recorder->record_action(...)

This method takes a set of parameters which will be passed directly to Fey::ORM::Mock::Action->new_action(). Then it stores the action.

$recorder->actions_for_class($class)

Given a class name, this returns a list of stored actions for that class, from least to most recent.

$recorder->clear_class($class)

Clears the record of actions for the class

$recorder->clear_all()

Clears the records for all classes.

AUTHOR ^

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2010 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0
syntax highlighting: