aidask/yii-closure-table-behavior 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aidask/yii-closure-table-behavior

Composer 安装命令:

composer require aidask/yii-closure-table-behavior

包简介

ActiveRecord model behavior that allows to work with tree data.

README 文档

README

Extension allows managing trees stored in database.

Configuration

Add behavior to model as follows:

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

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/

统计信息

  • 总下载量: 178
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 17
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固