PHP Class Horde_History_Mongo, horde

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

Protected Properties

Property Type Description
$_db MongoDB MongoDB object used to manage the history.
$_indices array The list of indices.

Public Methods

Method 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 )

Protected Methods

Method 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 method

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

_assocQuery() protected method

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

_cursorToRow() protected method

protected _cursorToRow ( MongoCursor $cursor ) : array
$cursor MongoCursor
return array

_getByModSeq() protected method

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

_getByTimestamp() public method

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

_getHistory() public method

public _getHistory ( $guid )

_log() protected method

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

_nextModSeq() protected method

protected _nextModSeq ( )

checkMongoIndices() public method

public checkMongoIndices ( )

createMongoIndices() public method

public createMongoIndices ( )

getActionTimestamp() public method

public getActionTimestamp ( $guid, $action )

getHighestModSeq() public method

public getHighestModSeq ( $parent = null )

getLatestEntry() public method

public getLatestEntry ( $guid, $use_ts = false )

removeByNames() public method

public removeByNames ( array $names )
$names array

Property Details

$_db protected_oe property

MongoDB object used to manage the history.
protected MongoDB $_db
return MongoDB

$_indices protected_oe property

The list of indices.
protected array $_indices
return array