PHP Class Pimcore\Model\Tool\Lock

Inheritance: extends Pimcore\Model\AbstractModel
Show file Open project: pimcore/pimcore Class Usage Examples

Public Properties

Property Type Description
$date integer
$id string

Protected Properties

Property Type Description
$acquiredLocks array
$instance Lock

Public Methods

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

Protected Methods

Method Description
getInstance ( ) : Lock

Method Details

acquire() public static method

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

get() public static method

public static get ( $key ) : Lock
$key
return Lock

getDate() public method

public getDate ( ) : integer
return integer

getId() public method

public getId ( ) : string
return string

getInstance() protected static method

protected static getInstance ( ) : Lock
return Lock

isLocked() public static method

public static isLocked ( $key, integer $expire = 120 ) : mixed
$key
$expire integer
return mixed

lock() public static method

public static lock ( string $key ) : boolean
$key string
return boolean

release() public static method

public static release ( string $key )
$key string

releaseAll() public static method

public static releaseAll ( )

setDate() public method

public setDate ( integer $date )
$date integer

setId() public method

public setId ( string $id )
$id string

Property Details

$acquiredLocks protected static property

protected static array $acquiredLocks
return array

$date public property

public int $date
return integer

$id public property

public string $id
return string

$instance protected static property

protected static Lock,Pimcore\Model\Tool $instance
return Lock