[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Plugins/Censor/ -> Helper.php (summary)

(no description)

File Size: 160 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Helper:: (6 methods):
  __construct()
  censorHtml()
  censorText()
  isCensored()
  getReplacement()
  isAllowed()


Class: Helper  - X-Ref


__construct(array $config)   X-Ref
Constructor

param: array $config Helper's config

censorHtml($html, $censorAttributes = false)   X-Ref
Censor text nodes inside of HTML code

NOTE: will only recognize attributes that are enclosed in double quotes

param: string $html             Original HTML
param: bool   $censorAttributes Whether to censor the content of attributes
return: string                   Censored HTML

censorText($text)   X-Ref
No description

isCensored($word)   X-Ref
No description

getReplacement($word)   X-Ref
Get the replacement for given word

param: string $word Original word
return: string       Replacement if the word is censored, or the original word otherwise

isAllowed($word)   X-Ref
Test whether given word is allowed (whitelisted)

param: string $word
return: bool



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1