Closed chland closed 6 years ago
This is basically just a "proof-of-concept" for ID-caching (without using CI's caching library).
It precaches all Group/Permission-IDs in the constructor and uses that data in the get_perm/group_id() functions.
I'm "normalizing" the permission/group-names a bit before using them as array keys. I'm doing this so something like
get_perm_id('Test')
and
get_perm_id('test')
will return the same ID.
This now includes the transaction handling, too.
Sweet 😄 I'll take a look over it later.
Thanks, I'll merge it now.
This is basically just a "proof-of-concept" for ID-caching (without using CI's caching library).
It precaches all Group/Permission-IDs in the constructor and uses that data in the get_perm/group_id() functions.
I'm "normalizing" the permission/group-names a bit before using them as array keys. I'm doing this so something like
get_perm_id('Test')
and
get_perm_id('test')
will return the same ID.