Download the PHP package coresky/acl without Composer
On this page you can find all versions of the php package coresky/acl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package acl
Access control list
Production ware. Use this product if your application require access control manager.
CUD operation logging configurable at the ware installation stage.
Simple mode: Create/Read/Update/Delete for users profile allow objects. User's groups and single user_id do not used for ACL.
Extended mode: Create/Read/Update/Delete = C/R/U/D for user_profile, user_groups, user_id allow/deny for objects OR object_ID
User to Profiles is one to many relation. Users to Groups is many to many relation.
Essence | Brief Info |
---|---|
Version | 0.899 |
Installer class | present (acl\ware) |
w3 classes | 2 (Acl (console), ACM) |
Controllers | 1, has optional tune |
Models | 3 |
Jet templates | 8, tunable |
Tables in the database | 5, tunable names |
dd drivers support | 2 (sqlite3, mysqli) for now |
SKY::$vars | 1 ($k_acl) |
Asset files | 0 |
Tuning the ware:
Simple usage in the application code
You must import at least \ACM
and controller's c_acl
class into application namespace.
Where Ressence:
- R - char one of C/R/U/D or X. R - access for reading
- essence - object (essence) name from acl_object database table
Usage for selected object ID
Access for selected object ID:
You must place in common_c::head_y($action)
:
Objects for selected ID you can create using call:
Replacing Jet templates
See the root templates call:
All templates can be changed with application code in file acl.jet.
You can also use parts of original ACL Jet files using back call: @inc(_user.profiles)
for example
Improvement for MySQL
Drop old ACL Log records
You can do it using CRON task for example:
Fictitious ACM class
If the application code contains references to the ACL class, but you need to temporarily uninstall the ACL product, you can add a dummy ACM class to the application's w3 folder: