PHP Class IMP_Sentmail_Mongo, horde

Author: Michael Slusarz ([email protected])
Inheritance: extends IMP_Sentmail, implements Horde_Mongo_Collection_Index
ファイルを表示 Open project: horde/horde

Protected Properties

Property Type Description
$_db MongoCollection Handle for the current database connection.
$_indices array Indices list.

Public Methods

Method Description
__construct ( array $params = [] )
checkMongoIndices ( )
createMongoIndices ( )
favouriteRecipients ( $limit, $filter = null )
numberOfRecipients ( $hours, $user = false )

Protected Methods

Method Description
_deleteOldEntries ( $before )
_log ( $action, $message_id, $recipient, $success )

Method Details

__construct() public method

public __construct ( array $params = [] )
$params array Parameters: - collection: (string) The name of the sentmail collection. - mongo_db: (Horde_Mongo_Client) [REQUIRED] The DB instance.

_deleteOldEntries() protected method

protected _deleteOldEntries ( $before )

_log() protected method

protected _log ( $action, $message_id, $recipient, $success )

checkMongoIndices() public method

public checkMongoIndices ( )

createMongoIndices() public method

public createMongoIndices ( )

favouriteRecipients() public method

public favouriteRecipients ( $limit, $filter = null )

numberOfRecipients() public method

public numberOfRecipients ( $hours, $user = false )

Property Details

$_db protected_oe property

Handle for the current database connection.
protected MongoCollection $_db
return MongoCollection

$_indices protected_oe property

Indices list.
protected array $_indices
return array