PHP Class Phergie_Plugin_Censor, phergie

Inheritance: extends Phergie_Plugin_Abstract
Afficher le fichier Open project: phergie/phergie

Protected Properties

Свойство Type Description
$soap SoapClient SOAP client to interact with the CDYNE Profanity Filter API

Méthodes publiques

Méthode Description
cleanString ( string $string ) : string Returns a "clean" version of a given string.
onLoad ( ) : void Checks for dependencies.
preDispatch ( ) : void Processes events before they are dispatched and either censors their content or discards them if they contain potentially offensive content.

Method Details

cleanString() public méthode

Returns a "clean" version of a given string.
public cleanString ( string $string ) : string
$string string String to clean
Résultat string Cleaned string

onLoad() public méthode

Checks for dependencies.
public onLoad ( ) : void
Résultat void

preDispatch() public méthode

Processes events before they are dispatched and either censors their content or discards them if they contain potentially offensive content.
public preDispatch ( ) : void
Résultat void

Property Details

$soap protected_oe property

SOAP client to interact with the CDYNE Profanity Filter API
protected SoapClient $soap
Résultat SoapClient