SproutCMS

This is the code documentation for the SproutCMS project

function getAccessableGroups()

Returns a list of groups (operator categories) which can access a specific page.

Each page can either specify permissions, or inherit permissions from it's parent page.

Usage

false|array AdminPerms::getAccessableGroups ( string $table , int $id );

Example

$cat_ids = AdminPerms::getAccessableGroups('pages', 10);

Arguments

  1. string $table
    The table to get permissions for
  2. int $id
    The ID of the record to get permissions for

Return value

  • array
    Integers, one per category of operator which has access
  • false
    No operators have access