SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

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

Variables

NameVisibilityDescription
$user_perms_inst (static)
Cached instance across multiple calls. FALSE = not yet loaded

Functions

NameVisibilityDescription
checkPermissionsTreepublic (static)Stub method for when the users module is not installed
getAccessDeniedpublic (static)Stub method; uses real one if Users module is installed.
getAccessableGroupspublic (static)Stub method; uses real one if Users module is installed.
getAllCategoriespublic (static)Stub method; uses real one if Users module is installed.
realUserPermsInstprotected (static)Create an instance of the "real" user perms class, if it's available.

public checkPermissionsTree

bool UserPerms::checkPermissionsTree ( mixed $table , mixed $id );

Stub method for when the users module is not installed
See SproutModules\Karmabunny\Users\Helpers\UserPerms::checkPermissionsTree

public getAccessDenied

View UserPerms::getAccessDenied ( );

Stub method; uses real one if Users module is installed.
See SproutModules\Karmabunny\Users\Helpers\UserPerms::getAccessDenied

public getAccessableGroups

array UserPerms::getAccessableGroups ( mixed $table , mixed $id );

Stub method; uses real one if Users module is installed.
See SproutModules\Karmabunny\Users\Helpers\UserPerms::getAccessableGroups

public getAllCategories

array UserPerms::getAllCategories ( );

Stub method; uses real one if Users module is installed.
See SproutModules\Karmabunny\Users\Helpers\UserPerms::getAllCategories

protected realUserPermsInst

null|object UserPerms::realUserPermsInst ( );

Create an instance of the "real" user perms class, if it's available.