SproutCMS

This is the code documentation for the SproutCMS project

class UserPerms

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".

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 &quot;real&quot; 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
    }
    
}
?>