Function __global->get_permissions_matrix

Definitions

sources/permissions2.php

  • Create a form field input matrix for permission setting.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: object

Parameters

Name Type Default Set Range Description
$server_id ID_TEXT required parameter N/A N/A Permission ID (page_link style) for the resource being set
$access array required parameter N/A N/A An inverted list showing what view permissions are set for what we're setting permissions for
$overridables array required parameter N/A N/A List of overridable privilege codes for what we're setting permissions for
$privileges array required parameter N/A N/A List of privilege settings relating to what we're setting permissions for, from the database
$default_access array required parameter N/A N/A Multi-dimensional array showing what the inherited defaults for this permission would be
$include_outer boolean True N/A N/A Whether to include the stuff to make it fit alongside other form fields in a normal form table
$pinterface_view ?Tempcode Null N/A N/A Label for view permissions (null: default)

Return

  • The form field matrix
  • Type: Tempcode
  • Set: N/A
  • Range: N/A