Helper for implementing per-record permissions
This is the code documentation for the SproutCMS project
Search documentation |
class PerRecordPermsHelper for implementing per-record permissions
Functions
public controllerRestrictedbool PerRecordPerms::controllerRestricted ( ManagedAdminController $ctlr ); Checks to see if per-record permissions apply to a particular controller public fetchDetailsarray PerRecordPerms::fetchDetails ( ManagedAdminController $ctlr , int $item_id ); Gets the permission details from the database public getCategoryClausestring PerRecordPerms::getCategoryClause ( ); Gets a clause to restrict a query to the set of categories the current admin belongs to public hasRecordPermsbool PerRecordPerms::hasRecordPerms ( ManagedAdminController $ctlr ); Checks if a given controller has at least one permission rule in place public savevoid PerRecordPerms::save ( ManagedAdminController $ctlr , int $item_id ); Save the permissions for a particular record |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|