PHP Class Horde_Spam_Base, horde

Author: Michael Slusarz ([email protected])
Author: Jan Schneider ([email protected])
Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
report ( array $msgs, integer $action ) : integer Reports a list of messages as innocent/spam.
setLogger ( Horde_Log_Logger $logger ) Sets the log handler.

Method Details

__construct() public method

Constructor.
public __construct ( )

report() abstract public method

Reports a list of messages as innocent/spam.
abstract public report ( array $msgs, integer $action ) : integer
$msgs array List of message contents, either as streams or strings.
$action integer Either Horde_Spam::SPAM or Horde_Spam::INNOCENT.
return integer The number of reported messages.

setLogger() public method

Sets the log handler.
public setLogger ( Horde_Log_Logger $logger )
$logger Horde_Log_Logger The log handler.