Ejemplo n.º 1
0
 /**
  * Обновить конфигурационный файл модуля
  *
  * @param WebModule $module
  * @return bool
  * @since 0.8
  */
 public function updateModuleConfig(WebModule $module)
 {
     $newConfig = $this->getModulesConfigDefault($module->getId());
     $currentConfig = $this->getModulesConfig($module->getId());
     if ((!file_exists($currentConfig) || YFile::rmFile($currentConfig)) && YFile::cpFile($newConfig, $currentConfig)) {
         return true;
     }
     return false;
 }