Censor
extends CensorWords
in package
Table of Contents
- $lotgdMatchWords : array<string|int, mixed>
- Last matched words, after filter.
- $lotgdOrigString : string
- Last original text, before filter.
- __construct() : mixed
- filter() : string
- Apply profanity filter.
- getMatchWords() : array<string|int, mixed>
- Get matched words.
- getOrigString() : string
- Get the original text.
Properties
$lotgdMatchWords
Last matched words, after filter.
protected
array<string|int, mixed>
$lotgdMatchWords
= []
$lotgdOrigString
Last original text, before filter.
protected
string
$lotgdOrigString
= ''
Methods
__construct()
public
__construct(string $locale, string $projectDir) : mixed
Parameters
- $locale : string
- $projectDir : string
Return values
mixed —filter()
Apply profanity filter.
public
filter(string $string[, mixed $fullWords = false ]) : string
Parameters
- $string : string
- $fullWords : mixed = false
Tags
Return values
string —getMatchWords()
Get matched words.
public
getMatchWords() : array<string|int, mixed>
Return values
array<string|int, mixed> —getOrigString()
Get the original text.
public
getOrigString() : string