Download the PHP package cedriclombardot/propel-visibility-behavior without Composer
On this page you can find all versions of the php package cedriclombardot/propel-visibility-behavior. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cedriclombardot/propel-visibility-behavior
More information about cedriclombardot/propel-visibility-behavior
Files in cedriclombardot/propel-visibility-behavior
Download cedriclombardot/propel-visibility-behavior
More information about cedriclombardot/propel-visibility-behavior
Files in cedriclombardot/propel-visibility-behavior
Vendor cedriclombardot
Package propel-visibility-behavior
Short Description Propel behavior that helps you to set a visibility per fields
License MIT
Package propel-visibility-behavior
Short Description Propel behavior that helps you to set a visibility per fields
License MIT
Please rate this library. Is it a good library?
Informations about the package propel-visibility-behavior
VisibilityBehavior
The VisibilityBehavior behavior allows you to add visibility column per field and manage visible datas per user role.
Installation
Cherry-pick the VisibilityBehavior.php
file is src/
, put it somewhere,
then add the following line to your propel.ini
or build.properties
configuration file:
Usage
Just add the following XML tag in your schema.xml
file:
The visibility behavior requires four parameters to work:
visibilities
: a finite set of visibilities as comma separated values;default_visibility
: the initial state, part of set of visibilities;hierarchy
: a set of hierarchies. As you can see, you can add as manyhierarchy
parameters as you want.apply_to
: the list of column to apply the visibility behavior
Each hierarchy has to follow this pattern:
when it's visible for VISIBILITY_1 it's visible for VISIBILITY_2
All versions of propel-visibility-behavior with dependencies
PHP Build Version
Package Version
Requires
propel/propel1 Version
~1.6
The package cedriclombardot/propel-visibility-behavior contains the following files
Loading the files please wait ....