Return a list of valid locks with the option to limit the results
by principal, scope and/or type.
abstract public getLocks ( string $scope = null, string $principal = null, integer $type = null ) : array | ||
$scope | string | The scope of the lock. Typically the name of the application requesting the lock or some other identifier used to group locks together. |
$principal | string | Principal for which to check for locks |
$type | integer | Only return locks of the given type. Defaults to null, or all locks |
return | array | Array of locks with the ID as the key and the lock details as the value. If there are no current locks this will return an empty array. |