The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBIx::Class::AuditLog - Simple activity audit logging for DBIx::Class

VERSION

version 0.6.2

NAME

DBIx::Class::AuditLog - Simple activity audit logging for DBIx::Class

VERSION

version 0.2.6

DBIx::Class OVERRIDDEN METHODS

insert

update

delete

HELPER METHODS

_audit_log_schema

Returns the AuditLog schema from storage.

    my $al_schema = $schmea->audit_log_schema;

_action_setup

Creates a new AuditLog Action for a specific type.

Requires: row: primary key of the table that is being audited action_type: action type, 1 of insert/update/delete

_store_changes

Store the column data that has changed

Requires: action: the action object that has associated changes old_values: the old values are being replaced new_values: the new values that are replacing the old table: dbic object of the audit_log_table object

_do_audit

Returns 1 or 0 if the column should be audited or not.

Requires: column: the name of the column/field to check

_force_audit

Returns 1 or 0 if the column should be audited even if its value did not change.

Requires: column: the name of the column/field to check

_do_modify_audit_value

Returns 1 or 0 if the columns value should be modified before audit.

Requires: column: the name of the column/field to check

_modify_audit_value

Modifies the colums audit-value. Dies if no modify-method could be found.

Returns: the modified value

Requires: column: the name of the column/field to check value: the original value

AUTHOR

Mark Jubenville <ioncache@gmail.com>

CONTRIBUTORS

Lukas Thiemeier <lukast@cpan.org>

Dimitar Petrov <dcpetrov@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Mark Jubenville.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

AUTHOR

Mark Jubenville <ioncache@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Mark Jubenville.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.