\Redaction

This class is responsible for all redaction functionality.

Summary

Methods
Properties
Constants
redact()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

redact()

redact( $allowedCsv,  $who,  $when, string $content)

Returns the content if the current user is assigned a role that is allowed to read the content, otherwise return a string with the same number of characters as the content but contains only underscores and spaces.

Parameters

$allowedCsv
$who
$when
string $content

The content to redact or display.