Ejemplo n.º 1
0
 /**
  * Update the listener after renaming a folder.
  *
  * @param string $old The old path of the folder.
  * @param string $new The new path of the folder.
  *
  * @return NULL
  */
 public function updateAfterRenameFolder($old, $new)
 {
     if (isset($this->_descriptions[$old])) {
         $this->_descriptions[$new] = $this->_descriptions[$old];
         unset($this->_descriptions[$old]);
         $this->_list_cache->setQuery(self::DESCRIPTIONS, $this->_descriptions);
     }
     if (isset($this->_parameters[$old])) {
         $this->_parameters[$new] = $this->_parameters[$old];
         unset($this->_parameters[$old]);
         $this->_list_cache->setLongTerm(self::PARAMETERS, $this->_parameters);
     }
     $this->_list_cache->save();
 }