PHP Class IMP_Spam, horde

Author: Michael Slusarz ([email protected])
Show file Open project: horde/horde

Protected Properties

Property Type Description
$_action integer Action.
$_drivers array Driver list.

Public Methods

Method Description
__construct ( integer $action, array $drivers = [] ) Constructor.
report ( IMP_Indices $indices ) : integer Reports a list of messages as innocent/spam.

Method Details

__construct() public method

Constructor.
public __construct ( integer $action, array $drivers = [] )
$action integer Either IMP_Spam::SPAM or IMP_Spam::INNOCENT.
$drivers array List of reporting drivers.

report() public method

Reports a list of messages as innocent/spam.
public report ( IMP_Indices $indices ) : integer
$indices IMP_Indices An indices object.
return integer 1 if messages have been deleted, 2 if messages have been moved.

Property Details

$_action protected property

Action.
protected int $_action
return integer

$_drivers protected property

Driver list.
protected array $_drivers
return array