public function checkRequirements($module_id)
    {
        $this->checkModuleId($module_id);
        $module = $this->module->getInfo($module_id);
        $this->checkCore($module);
        $this->checkPhpVersion($module);

        if ($this->module->isInstaller($module_id)) {
            $error = $this->translation->text('Modules with "installer" type cannot be installed/enabled when system is already set up');
            throw new UnexpectedValueException($error);
        }

        $this->checkDependenciesExtensions($module);
        $this->checkDependenciesModule($module_id);
        return true;
    }
public function checkRequirements($module_id)
    {
        $this->checkModuleId($module_id);
        $module = $this->module->getInfo($module_id);
        $this->checkCore($module);
        $this->checkPhpVersion($module);

        if ($this->module->isInstaller($module_id)) {
            $error = $this->translation->text('Modules with "installer" type cannot be installed/enabled when system is already set up');
            throw new UnexpectedValueException($error);
        }

        $this->checkDependenciesExtensions($module);
        $this->checkDependenciesModule($module_id);
        return true;
    }
public function checkRequirements ( $ module_id ) { $ this -> checkModuleId ( $ module_id ) ; $ module = $ this -> module -> getInfo ( $ module_id ) ; $ this -> checkCore ( $ module ) ; $ this -> checkPhpVersion ( $ module ) ; if ( $ this -> module -> isInstaller ( $ module_id ) ) { $ error = $ this -> translation -> text ( 'Modules with "installer" type cannot be installed/enabled when system is already set up' ) ; throw new UnexpectedValueException ( $ error ) ; } $ this -> checkDependenciesExtensions ( $ module ) ; $ this -> checkDependenciesModule ( $ module_id ) ; return true ; }
Checks all requirements for the module
@param string $module_id
@return bool
@throws UnexpectedValueException
Checks all requirements for the module