PHP Класс Horde_History_Mongo, horde

Автор: Michael Slusarz ([email protected])
Наследование: extends Horde_History, implements Horde_Mongo_Collection_Index
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_db MongoDB MongoDB object used to manage the history.
$_indices array The list of indices.

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
_assocQuery ( $query, $filters, $parent )
_cursorToRow ( MongoCursor $cursor ) : array
_getByModSeq ( $start, $end, $filters = [], $parent = null )
_log ( Horde_History_Log $history, array $attributes, $replaceAction = false )
_nextModSeq ( )

Описание методов

__construct() публичный Метод

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

_assocQuery() защищенный Метод

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

_cursorToRow() защищенный Метод

protected _cursorToRow ( MongoCursor $cursor ) : array
$cursor MongoCursor
Результат array

_getByModSeq() защищенный Метод

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

_getByTimestamp() публичный Метод

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

_getHistory() публичный Метод

public _getHistory ( $guid )

_log() защищенный Метод

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

_nextModSeq() защищенный Метод

protected _nextModSeq ( )

checkMongoIndices() публичный Метод

public checkMongoIndices ( )

createMongoIndices() публичный Метод

public createMongoIndices ( )

getActionTimestamp() публичный Метод

public getActionTimestamp ( $guid, $action )

getHighestModSeq() публичный Метод

public getHighestModSeq ( $parent = null )

getLatestEntry() публичный Метод

public getLatestEntry ( $guid, $use_ts = false )

removeByNames() публичный Метод

public removeByNames ( array $names )
$names array

Описание свойств

$_db защищенное свойство

MongoDB object used to manage the history.
protected MongoDB $_db
Результат MongoDB

$_indices защищенное свойство

The list of indices.
protected array $_indices
Результат array