Jelix\Installer\Installer::installApplication PHP Метод

installApplication() публичный Метод

install and upgrade if needed, all modules for each entry point. Only modules which have an access property > 0 are installed. Errors appeared during the installation are passed to the reporter.
public installApplication ( integer $flags = false ) : boolean
$flags integer flags indicating if we should install, and/or upgrade modules or only modify config files. internal use. see FLAG_* constants
Результат boolean true if succeed, false if there are some errors
    public function installApplication($flags = false)
    {
        if ($flags === false) {
            $flags = self::FLAG_ALL;
        }
        $this->startMessage();
        $result = true;
        foreach ($this->entryPoints as $epId => $ep) {
            if ($ep->sameConfigAs) {
                continue;
            }
            $resolver = new Resolver();
            foreach ($ep->getLaunchers() as $name => $module) {
                $resolverItem = $module->getResolverItem($epId);
                $resolver->addItem($resolverItem);
            }
            $result = $result & $this->_installModules($resolver, $ep, true, $flags);
            if (!$result) {
                break;
            }
        }
        if ($result) {
            $this->completeInstallStatus();
        }
        $this->installerIni->save();
        $this->endMessage();
        return $result;
    }