PHP 클래스 Horde_Lock_Mongo, horde

저자: Michael Slusarz ([email protected])
상속: extends Horde_Lock
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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.

공개 메소드들

메소드 설명
__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 )

보호된 메소드들

메소드 설명
_mapFields ( $res ) : array Map return to SQL fields.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array Parameters:
  - collection: (string) The collection name.
  - mongo_db: [REQUIRED] (Horde_Mongo_Client) A MongoDB client object.

__destruct() 공개 메소드

Destructor.
public __destruct ( )

_mapFields() 보호된 메소드

Map return to SQL fields.
protected _mapFields ( $res ) : array
리턴 array

clearLock() 공개 메소드

public clearLock ( $lockid )

gc() 공개 메소드

Do garbage collection needed for the driver.
public gc ( )

getLockInfo() 공개 메소드

public getLockInfo ( $lockid )

getLocks() 공개 메소드

public getLocks ( $scope = null, $principal = null, $type = null )

resetLock() 공개 메소드

public resetLock ( $lockid, $lifetime )

setLock() 공개 메소드

public setLock ( $requestor, $scope, $principal, $lifetime = 1, $type = Horde_Lock::TYPE_SHARED )

프로퍼티 상세

$_db 보호되어 있는 프로퍼티

The MongoDB Collection object for the cache data.
protected MongoCollection $_db
리턴 MongoCollection

$_map 보호되어 있는 프로퍼티

Ugly hack: lock driver written with assumption that it returns data as defined by SQL columns. So need to do mapping in this driver.
protected array $_map
리턴 array