Documentation

Horde_Spam_Base
in package

Spam reporting driver base class.

Tags
author

Michael Slusarz slusarz@horde.org

author

Jan Schneider jan@horde.org

category

Horde

copyright

2013-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl LGPL

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.

Return values
mixed

Search results