alex-kalanis/kw_auth_groups
最新稳定版本:v4.0.0
Composer 安装命令:
composer require alex-kalanis/kw_auth_groups
包简介
Groups for determine authentication rights in KWCMS
README 文档
README
Groups using kw_* authentication sources inside the kw_* project.
PHP Installation
composer.phar require alex-kalanis/kw_auth_groups
(Refer to Composer Documentation if you are not familiar with composer)
PHP Usage
1.) Use your autoloader (if not already done via Composer autoloader)
2.) Add some external packages with connection to the local or remote services.
3.) Connect the "kalanis\kw_auth_groups\Access\Factory" into your app. Extends it for setting your case.
4.) Extend your libraries by interfaces inside the package.
5.) Just call Factory::getSources and then work over CompositeSources.
Basic Rules
-
Get
- Group ID equals current one.
- Group ID is somewhere in the tree of children.
-
Add
- Fails when the currently added group already exists.
- Fails when the currently added group is already defined within parents of this group.
-
Update
- Fails when the currently updated group is already defined within parents of this group.
-
Delete
- Can delete only when there is no group with processed one as parent.
The group ID is usually string, although it can be integer converted to string before method call.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-08-21