Horde_Spam_Base
in package
Spam reporting driver base class.
Tags
Table of Contents
- __construct() : mixed
- Constructor.
- report() : int
- Reports a list of messages as innocent/spam.
- setLogger() : mixed
- Sets the log handler.
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed —report()
Reports a list of messages as innocent/spam.
public
abstract report(array<string|int, mixed> $msgs, int $action) : int
Parameters
- $msgs : array<string|int, mixed>
-
List of message contents, either as streams or strings.
- $action : int
-
Either Horde_Spam::SPAM or Horde_Spam::INNOCENT.
Return values
int —The number of reported messages.
setLogger()
Sets the log handler.
public
setLogger(Horde_Log_Logger $logger) : mixed
Parameters
- $logger : Horde_Log_Logger
-
The log handler.