2017 © Pedro Peláez
 

yii2-extension yii2-save-with-audit-trail-behavior

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

image

exertis/yii2-save-with-audit-trail-behavior

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  • Tuesday, February 9, 2016
  • by russellhutsonmicro-p
  • Repository
  • 4 Watchers
  • 0 Stars
  • 240 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Yii2 Save With Audit Trail Behavior

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist exertis/yii2-save-with-audit-trail-behavior "*"

or add, (*4)

"exertis/yii2-save-with-audit-trail-behavior": "*"

to the require section of your composer.json file., (*5)

Database Setup

You need to run some migrations to setup the Audit Trail table., (*6)

php yii migrate --migrationPath=@vendor/exertis/yii2-save-with-audit-trail-behavior/migrations

Configuring

First you need to configure model as follows:, (*7)

use exertis\savewithaudittrail\SaveWithAuditTrailBehavior;

class Post extends ActiveRecord
{
    public function behaviors() {
        return [
            [
                'class' => SaveWithAuditTrailBehavior::className(),
            ],
        ];
    }
}

The Versions

09/02 2016

dev-master

9999999-dev

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  Sources   Download

MIT

The Requires

 

by Russell Hutson

extension yii2

09/02 2016

v1.0.7

1.0.7.0

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  Sources   Download

MIT

The Requires

 

by Russell Hutson

extension yii2

09/02 2016

v1.0.6

1.0.6.0

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  Sources   Download

MIT

The Requires

 

by Russell Hutson

extension yii2

09/02 2016

v1.0.5

1.0.5.0

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  Sources   Download

MIT

The Requires

 

by Russell Hutson

extension yii2

09/02 2016

v1.0.4

1.0.4.0

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  Sources   Download

MIT

The Requires

 

by Russell Hutson

extension yii2

09/02 2016

v1.0.3

1.0.3.0

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  Sources   Download

MIT

The Requires

 

by Russell Hutson

extension yii2

09/02 2016

v1.0.2

1.0.2.0

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  Sources   Download

MIT

The Requires

 

by Russell Hutson

extension yii2

20/04 2015

v1.0.1

1.0.1.0

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  Sources   Download

MIT

The Requires

 

by Russell Hutson

extension yii2

03/12 2014

v1.0.1-alpha

1.0.1.0-alpha

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  Sources   Download

MIT

The Requires

 

by Russell Hutson

extension yii2

03/12 2014

v1.0.0-alpha

1.0.0.0-alpha

Adds a $model->saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

  Sources   Download

MIT

The Requires

 

by Russell Hutson

extension yii2