hypejunction/hypegroups
最新稳定版本:6.0.0
Composer 安装命令:
composer require hypejunction/hypegroups
包简介
Extended group functionality for Elgg — subtypes, hierarchies, fields, and tools management.
关键字:
README 文档
README
Extended group functionality for Elgg — subtypes, hierarchies, fields, and tools management.
Features
- Extended search and sort functionality
- API to add new group subtypes
- API to manage group hierarchies
- API for managing group fields
- API for restricting group tools, as well as using preset tools
Notes
Subtypes
Registering new subtypes and configuring them is made easy.
Here is an example of how to remove groups from the top level of the site, and making them subgroups of a new subtype called classroom.
$svc = elgg()->groups; /* @var $svc \hypeJunction\Groups\GroupsService */ $svc->registerSubtype('classroom', [ 'labels' => [ 'en' => [ 'item' => 'Classroom', 'collection' => 'Classrooms', ], ], 'root' => true, 'identifier' => 'classrooms', 'class' => \CustomPlugin\Classroom::class, 'collections' => [ 'all' => \CustomPlugin\DefaultClassroomCollection::class, 'owner' => \CustomPlugin\OwnedClassroomCollection::class, 'member' => \CustomPlugin\JoinedClassroomCollection::class, ], ]); $svc->registerSubtype('group', [ 'site_menu' => false, 'labels' => [ 'en' => [ 'item' => 'Group', 'collection' => 'Groups', ], ], 'root' => false, 'parents' => ['classroom'], 'identifier' => 'groups', ]);
You can put multiple subtypes into a collection by assigning them to the same identifier, e.g. you could create usa_state and canada_province subtypes and register them for regions identifier.
Fields
Fields are managed by hypePost. Please see the documentation there for more information.
Compatibility
| Plugin version | Elgg version |
|---|---|
| 7.0.0 | 7.x |
| 6.0.0 | 6.x |
| 5.0.0 | 5.x |
| 4.0.0 | 4.x |
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2019-08-30