2017 © Pedro Peláez
 

yii-extension yii-closure-table-behavior

ActiveRecord model behavior that allows to work with tree data.

image

aidask/yii-closure-table-behavior

ActiveRecord model behavior that allows to work with tree data.

  • Tuesday, September 2, 2014
  • by AidasK
  • Repository
  • 2 Watchers
  • 14 Stars
  • 109 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Yii Closure Table behavior

Extension allows managing trees stored in database., (*1)

Configuration

Add behavior to model as follows:, (*2)

public function behaviors()
{
    return array(
        'closureTableBehavior'=>array(
            'class'=>'ext.ClosureTableBehavior',
            'closureTableName'=>'table_name',
        )
    );
}

Examples

Model configuration: /tests/models/Folder.php, (*3)

Schema example: /tests/schema/db.sql, (*4)

Behavior usage: /tests/unit/ClosureTableBehaviorTest.php, (*5)

Contribution

Your participation to Yii Closure Table behavior development is very welcome!, (*6)

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, (*7)

Literature:

http://www.slideshare.net/billkarwin/models-for-hierarchical-data, (*8)

http://www.mysqlperformanceblog.com/2011/02/14/moving-subtrees-in-closure-table/, (*9)

The Versions

02/09 2014

dev-master

9999999-dev https://github.com/AidasK/yii-closure-table-behavior

ActiveRecord model behavior that allows to work with tree data.

  Sources   Download

BSD-3-Clause

The Requires

 

by Aidas Klimas

extension nested set yii tree closure table

02/09 2014

v1.2.0

1.2.0.0 https://github.com/AidasK/yii-closure-table-behavior

ActiveRecord model behavior that allows to work with tree data.

  Sources   Download

BSD-3-Clause

The Requires

 

by Aidas Klimas

extension nested set yii tree closure table

16/08 2013

v1.1.0

1.1.0.0 https://github.com/AidasK/yii-closure-table-behavior

ActiveRecord model behavior that allows to work with tree data.

  Sources   Download

BSD-3-Clause

The Requires

 

by Aidas Klimas

extension nested set yii tree closure table

05/08 2013

v1.0.1

1.0.1.0 https://github.com/AidasK/yii-closure-table-behavior

ActiveRecord model behavior that allows to work with tree data.

  Sources   Download

BSD-3-Clause

The Requires

 

by Aidas Klimas

extension nested set yii tree closure table

13/07 2013

v1.0

1.0.0.0 https://github.com/AidasK/yii-closure-table-behavior

ActiveRecord model behavior that allows to work with tree data.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.1.0

 

by Aidas Klimas

extension nested set yii tree closure table