Property | Type | Description | |
---|---|---|---|
$_db | MongoCollection | The MongoDB Collection object for the cache data. | |
$_map | array | Ugly hack: lock driver written with assumption that it returns data as defined by SQL columns. So need to do mapping in this driver. |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
__destruct ( ) | Destructor. | |
clearLock ( $lockid ) | ||
gc ( ) | Do garbage collection needed for the driver. | |
getLockInfo ( $lockid ) | ||
getLocks ( $scope = null, $principal = null, $type = null ) | ||
resetLock ( $lockid, $lifetime ) | ||
setLock ( $requestor, $scope, $principal, $lifetime = 1, $type = Horde_Lock::TYPE_SHARED ) |
Method | Description | |
---|---|---|
_mapFields ( $res ) : array | Map return to SQL fields. |
public __construct ( array $params = [] ) | ||
$params | array | Parameters:
- collection: (string) The collection name. - mongo_db: [REQUIRED] (Horde_Mongo_Client) A MongoDB client object. |
protected _mapFields ( $res ) : array | ||
return | array |
public setLock ( $requestor, $scope, $principal, $lifetime = 1, $type = Horde_Lock::TYPE_SHARED ) |
protected MongoCollection $_db | ||
return | MongoCollection |
protected array $_map | ||
return | array |