src/wcmf/lib/persistence/concurrency/impl/DefaultLockHandler.php
protected function removeSessionLock(ObjectId $oid, $type) {
    $locks = $this->getSessionLocks();
    if (isset($locks[$oid->__toString()])) {
      $lock = $locks[$oid->__toString()];
      if ($type == null || $type != null && $lock->getType() == $type) {
        unset($locks[$oid->__toString()]);
        $this->session->set(self::SESSION_VARNAME, $locks);
      }
    }
  }
protected function removeSessionLock(ObjectId $oid, $type) {
    $locks = $this->getSessionLocks();
    if (isset($locks[$oid->__toString()])) {
      $lock = $locks[$oid->__toString()];
      if ($type == null || $type != null && $lock->getType() == $type) {
        unset($locks[$oid->__toString()]);
        $this->session->set(self::SESSION_VARNAME, $locks);
      }
    }
  }
protected function removeSessionLock ( ObjectId $ oid , $ type ) { $ locks = $ this -> getSessionLocks ( ) ; if ( isset ( $ locks [ $ oid -> __toString ( ) ] ) ) { $ lock = $ locks [ $ oid -> __toString ( ) ] ; if ( $ type == null || $ type != null && $ lock -> getType ( ) == $ type ) { unset ( $ locks [ $ oid -> __toString ( ) ] ) ; $ this -> session -> set ( self :: SESSION_VARNAME , $ locks ) ; } } }
Remove a given Lock instance from the session
@param $oid The locked oid
@param $type One of the Lock::Type constants or null for all types (default: _null_)
Remove a given Lock instance from the session