PHP Class Phergie_Plugin_Censor, phergie

Inheritance: extends Phergie_Plugin_Abstract
Show file Open project: phergie/phergie

Protected Properties

Property Type Description
$soap SoapClient SOAP client to interact with the CDYNE Profanity Filter API

Public Methods

Method 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 method

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

onLoad() public method

Checks for dependencies.
public onLoad ( ) : void
return void

preDispatch() public method

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

Property Details

$soap protected property

SOAP client to interact with the CDYNE Profanity Filter API
protected SoapClient $soap
return SoapClient