2017 © Pedro Peláez
 

library propel-lockable-behavior

Propel behavior that helps you to set a lock per fields

image

donkeycode/propel-lockable-behavior

Propel behavior that helps you to set a lock per fields

  • Friday, October 2, 2015
  • by cedriclombardot
  • Repository
  • 5 Watchers
  • 1 Stars
  • 2,889 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 15 % Grown

The README.md

LockableBehavior

Build Status, (*1)

The LockableBehavior behavior allows you to mark columns edited and choose forceUpdate or not., (*2)

Installation

Cherry-pick the LockableBehavior.php file is src/, put it somewhere, then add the following line to your propel.ini or build.properties configuration file:, (*3)

``` ini propel.behavior.visibility.class = path.to.LockableBehavior, (*4)



Usage ----- Just add the following XML tag in your `schema.xml` file: ``` xml <behavior name="lockable"> <!-- Choose columns to apply --> <parameter name="apply_to" value="my_field, my_other_field" /> </behavior>

The lockable behavior requires four parameters to work:, (*5)

  • apply_to: the list of column to apply the visibility behavior

In php :

  • $post->activateLocker() set true to locker fields at preSave
  • $post->activateLockCheck() revert locked fields at preSave to only persist not locked fields

The Versions

02/10 2015

dev-master

9999999-dev

Propel behavior that helps you to set a lock per fields

  Sources   Download

MIT

The Requires

 

by Cedric LOMBARDOT

behavior lock propel synchronizer