KMP PHP API Reference

SecurityDebugHelper extends Helper
in package

Security Debug Helper

Provides debugging information about user permissions, policies, and authorization checks. Only active when debug mode is enabled. Displays policies with branch scope info and authorization check log from the current request.

Table of Contents

Properties

$Html  : HtmlHelper
$helpers  : array<string|int, mixed>

Methods

displayAuthorizationChecks()  : string
Display authorization checks that occurred during this request
displaySecurityInfo()  : string
Display complete security debug information
displayUserPolicies()  : string
Display user policies with branch scope information
formatBranchIds()  : string
Format branch IDs for display
formatNoUserInfo()  : string
Format message for no user
formatScopingRule()  : string
Format scoping rule for display
getShortClassName()  : string
Get short class name from fully qualified class name

Properties

Methods

displayAuthorizationChecks()

Display authorization checks that occurred during this request

public displayAuthorizationChecks() : string
Return values
string

HTML output of authorization checks

formatBranchIds()

Format branch IDs for display

protected formatBranchIds(object $policyData) : string
Parameters
$policyData : object

Policy data object

Return values
string

Formatted branch information

formatNoUserInfo()

Format message for no user

protected formatNoUserInfo() : string
Return values
string

formatScopingRule()

Format scoping rule for display

protected formatScopingRule(string $scopingRule) : string
Parameters
$scopingRule : string

The scoping rule constant

Return values
string

Formatted scoping rule

getShortClassName()

Get short class name from fully qualified class name

protected getShortClassName(string $className) : string
Parameters
$className : string

Full class name

Return values
string

Short class name


        
On this page

Search results