2017 © Pedro Peláez
 

cakephp-plugin optimisticlock

CakePHP behavior plugin to implement optimistic locking for RDBMS.

image

tad80/optimisticlock

CakePHP behavior plugin to implement optimistic locking for RDBMS.

  • Thursday, April 23, 2015
  • by tad80
  • Repository
  • 1 Watchers
  • 2 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

OptimisticLock

CakePHP behavior plugin to implement optimistic locking for RDBMS., (*1)

Usage

Most simply, just load this behavior in your model., (*2)

class Post extends AppModel {
    public $actsAs = array('OptimisticLock.OptimisticLock');
}

You can specify which field to compare and error message shown in Model::validationErrors. Default will be like this., (*3)

class Post extends AppModel {
    public $actsAs = array(
        'OptimisticLock.OptimisticLock' => array(
            'field' => 'modified',
            'message' => 'Update conflict, another user has already updated the record. Please list and edit the record again.',
        ),
    );
}

Id and modified timestamp must be sent from your form., (*4)

$this->Html->form->input('Post.id', array('type' => 'hidden'));
$this->Html->form->input('Post.modified', array('type' => 'hidden', 'name' => 'data[Post][opt_modified]'));

The Versions

23/04 2015

dev-master

9999999-dev https://github.com/tad80/OptimisticLock

CakePHP behavior plugin to implement optimistic locking for RDBMS.

  Sources   Download

GNU GPL version 2

The Requires

 

cakephp optimistic lock

23/04 2015

1.0.5

1.0.5.0 https://github.com/tad80/OptimisticLock

CakePHP behavior plugin to implement optimistic locking for RDBMS.

  Sources   Download

GNU GPL version 2

The Requires

 

cakephp optimistic lock

23/04 2015

1.0.4

1.0.4.0 https://github.com/tad80/OptimisticLock

CakePHP behavior plugin to implement optimistic locking for RDBMS.

  Sources   Download

GNU GPL version 2

The Requires

 

cakephp optimistic lock

22/04 2015

dev-develop

dev-develop https://github.com/tad80/OptimisticLock

CakePHP behavior plugin to implement optimistic locking for RDBMS.

  Sources   Download

GNU GPL version 2

The Requires

 

cakephp optimistic lock

20/04 2015

1.0.3

1.0.3.0 https://github.com/tad80/OptimisticLock

CakePHP behavior plugin to implement optimistic locking for RDBMS.

  Sources   Download

GNU GPL version 2

The Requires

 

cakephp optimistic lock

02/04 2015

1.0.2

1.0.2.0 https://github.com/tad80/OptimisticLock

CakePHP behavior plugin to implement optimistic locking for RDBMS.

  Sources   Download

GNU GPL version 2

The Requires

 

cakephp optimistic lock

16/12 2014

1.0.1

1.0.1.0 https://github.com/tad80/OptimisticLock

CakePHP behavior plugin to implement optimistic locking for RDBMS.

  Sources   Download

GNU GPL version 2

The Requires

 

cakephp optimistic lock

05/12 2014

1.0.0

1.0.0.0 https://github.com/tad80/OptimisticLock

CakePHP behavior plugin to implement optimistic locking for RDBMS.

  Sources   Download

GNU GPL version 2

The Requires

 

cakephp optimistic lock