function __destruct() { $wasOk = $this->status->isOK(); $this->status->merge($this->manager->unlock($this->paths, $this->type)); if ($wasOk) { // Make sure status is OK, despite any unlockFiles() fatals $this->status->setResult(true, $this->status->value); } }
/** * Unlock the files at the given storage paths in the backend. * * @param array $paths Storage paths * @param integer $type LockManager::LOCK_* constant * @return Status */ final public function unlockFiles( array $paths, $type ) { $paths = array_map( 'FileBackend::normalizeStoragePath', $paths ); return $this->lockManager->unlock( $paths, $type ); }
/** * Unlock the files at the given storage paths in the backend. * * @param $paths Array Storage paths * @param $type integer LockManager::LOCK_* constant * @return Status */ public final function unlockFiles(array $paths, $type) { return $this->lockManager->unlock($paths, $type); }