Download the PHP package aidask/yii-closure-table-behavior without Composer
On this page you can find all versions of the php package aidask/yii-closure-table-behavior. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aidask/yii-closure-table-behavior
More information about aidask/yii-closure-table-behavior
Files in aidask/yii-closure-table-behavior
Package yii-closure-table-behavior
Short Description ActiveRecord model behavior that allows to work with tree data.
License BSD-3-Clause
Homepage https://github.com/AidasK/yii-closure-table-behavior
Informations about the package yii-closure-table-behavior
Yii Closure Table behavior
Extension allows managing trees stored in database.
Configuration
Add behavior to model as follows:
Examples
Model configuration: /tests/models/Folder.php
Schema example: /tests/schema/db.sql
Behavior usage: /tests/unit/ClosureTableBehaviorTest.php
Contribution
Your participation to Yii Closure Table behavior development is very welcome!
To ensure consistency throughout the source code, keep these rules in mind as you are working:
- All features or bug fixes must be tested by one or more specs.
- Your code should follow PSR-2 coding style guide
Literature:
http://www.slideshare.net/billkarwin/models-for-hierarchical-data
http://www.mysqlperformanceblog.com/2011/02/14/moving-subtrees-in-closure-table/