PHP Class Horde_History_Mongo, horde

Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_History, implements Horde_Mongo_Collection_Index
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_db MongoDB MongoDB object used to manage the history.
$_indices array The list of indices.

Méthodes publiques

Méthode Description
__construct ( $auth, array $params = [] ) Constructor.
_getByTimestamp ( $cmp, $ts, array $filters = [], $parent = null )
_getHistory ( $guid )
checkMongoIndices ( )
createMongoIndices ( )
getActionTimestamp ( $guid, $action )
getHighestModSeq ( $parent = null )
getLatestEntry ( $guid, $use_ts = false )
removeByNames ( array $names )

Méthodes protégées

Méthode Description
_assocQuery ( $query, $filters, $parent )
_cursorToRow ( MongoCursor $cursor ) : array
_getByModSeq ( $start, $end, $filters = [], $parent = null )
_log ( Horde_History_Log $history, array $attributes, $replaceAction = false )
_nextModSeq ( )

Method Details

__construct() public méthode

Constructor.
public __construct ( $auth, array $params = [] )
$params array Configuration parameters:
  • REQUIRED parameters:
    • mongo_db: (Horde_Mongo_Client) A MongoDB client object.

_assocQuery() protected méthode

protected _assocQuery ( $query, $filters, $parent )

_cursorToRow() protected méthode

protected _cursorToRow ( MongoCursor $cursor ) : array
$cursor MongoCursor
Résultat array

_getByModSeq() protected méthode

protected _getByModSeq ( $start, $end, $filters = [], $parent = null )

_getByTimestamp() public méthode

public _getByTimestamp ( $cmp, $ts, array $filters = [], $parent = null )
$filters array

_getHistory() public méthode

public _getHistory ( $guid )

_log() protected méthode

protected _log ( Horde_History_Log $history, array $attributes, $replaceAction = false )
$history Horde_History_Log
$attributes array

_nextModSeq() protected méthode

protected _nextModSeq ( )

checkMongoIndices() public méthode

public checkMongoIndices ( )

createMongoIndices() public méthode

public createMongoIndices ( )

getActionTimestamp() public méthode

public getActionTimestamp ( $guid, $action )

getHighestModSeq() public méthode

public getHighestModSeq ( $parent = null )

getLatestEntry() public méthode

public getLatestEntry ( $guid, $use_ts = false )

removeByNames() public méthode

public removeByNames ( array $names )
$names array

Property Details

$_db protected_oe property

MongoDB object used to manage the history.
protected MongoDB $_db
Résultat MongoDB

$_indices protected_oe property

The list of indices.
protected array $_indices
Résultat array