Example #1
0
 /**
  * Restores the original server settings.
  * 
  * Restores the original server auth (if it was set) and removes the lock
  * plugin again, if it was not set before. Unlocks the backend.
  */
 private function restoreEnvironment()
 {
     $this->backend->unlock();
     if ($this->serverAuth !== null) {
         $this->server->auth = $this->serverAuth;
     }
     if (!$this->serverHadLockPlugin) {
         $this->server->pluginRegistry->unregisterPlugin(new ezcWebdavLockPluginConfiguration());
     }
     $this->serverAuth = null;
     $this->serverHadLockPlugin = null;
 }