Stub class for when the users module is not installed Makes use of the fact that it's legal to call static methods from instances Will load the 'Helpers\UserPerms' class from the namespace registered for the feature "users".
This is the code documentation for the SproutCMS project
Search documentation |
class UserPermsStub class for when the users module is not installed Makes use of the fact that it's legal to call static methods from instances Will load the 'Helpers\UserPerms' class from the namespace registered for the feature "users".
Extending this class<?php /** * New class description goes here * * @author Your Name, 2024-11-25 **/ class NewClassName extends UserPerms { /** * Stub method; uses real one if Users module is installed. * See {@see SproutModules\Karmabunny\Users\Helpers\UserPerms::getAllCategories} **/ public function getAllCategories () { // Method code goes here } /** * Create an instance of the "real" user perms class, if it's available. **/ protected function realUserPermsInst () { // Method code goes here } /** * Stub method for when the users module is not installed * See {@see SproutModules\Karmabunny\Users\Helpers\UserPerms::checkPermissionsTree} **/ public function checkPermissionsTree ($table, $id) { // Method code goes here } /** * Stub method; uses real one if Users module is installed. * See {@see SproutModules\Karmabunny\Users\Helpers\UserPerms::getAccessableGroups} **/ public function getAccessableGroups ($table, $id) { // Method code goes here } /** * Stub method; uses real one if Users module is installed. * See {@see SproutModules\Karmabunny\Users\Helpers\UserPerms::getAccessDenied} **/ public function getAccessDenied () { // Method code goes here } } ?> |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |