sCode = ''; $this->sLabel = ''; $this->sDescription = ''; $this->sSource = self::SOURCE_WIZARD; $this->bMandatory = false; $this->sMoreInfoUrl = ''; $this->bMarkedAsChosen = false; $this->sVersion = ITOP_VERSION; $this->sInstalledVersion = ''; $this->aModules = []; $this->aModuleVersion = []; $this->aModuleInfo = []; $this->sSourceDir = ''; $this->bVisible = true; $this->aMissingDependencies = []; } /** * @since 3.3.0 * @return bool */ public function CanBeUninstalled(): bool { if (!is_null($this->bCanBeUninstalled)) { return $this->bCanBeUninstalled; } foreach ($this->aModuleInfo as $sModuleCode => $aModuleInfo) { if ($aModuleInfo['uninstallable'] !== 'yes') { return false; } } return true; } }