PHP Class Pimcore\Model\Tool\Lock

Inheritance: extends Pimcore\Model\AbstractModel
Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Méthodes publiques

Свойство Type Description
$date integer
$id string

Protected Properties

Свойство Type Description
$acquiredLocks array
$instance Lock

Méthodes publiques

Méthode Description
acquire ( string $key, $expire = 120, $refreshInterval = 1 )
get ( $key ) : Lock
getDate ( ) : integer
getId ( ) : string
isLocked ( $key, integer $expire = 120 ) : mixed
lock ( string $key ) : boolean
release ( string $key )
releaseAll ( )
setDate ( integer $date )
setId ( string $id )

Méthodes protégées

Méthode Description
getInstance ( ) : Lock

Method Details

acquire() public static méthode

public static acquire ( string $key, $expire = 120, $refreshInterval = 1 )
$key string

get() public static méthode

public static get ( $key ) : Lock
$key
Résultat Lock

getDate() public méthode

public getDate ( ) : integer
Résultat integer

getId() public méthode

public getId ( ) : string
Résultat string

getInstance() protected static méthode

protected static getInstance ( ) : Lock
Résultat Lock

isLocked() public static méthode

public static isLocked ( $key, integer $expire = 120 ) : mixed
$key
$expire integer
Résultat mixed

lock() public static méthode

public static lock ( string $key ) : boolean
$key string
Résultat boolean

release() public static méthode

public static release ( string $key )
$key string

releaseAll() public static méthode

public static releaseAll ( )

setDate() public méthode

public setDate ( integer $date )
$date integer

setId() public méthode

public setId ( string $id )
$id string

Property Details

$acquiredLocks protected_oe static_oe property

protected static array $acquiredLocks
Résultat array

$date public_oe property

public int $date
Résultat integer

$id public_oe property

public string $id
Résultat string

$instance protected_oe static_oe property

protected static Lock,Pimcore\Model\Tool $instance
Résultat Lock