src/Chee/Module/CheeModule.php
protected function sysVersionDependency($version)
    {
        $sysVersion = new Version($this->sysMajorVersion.'.'.$this->sysMinorVersion.'.'.$this->sysPathVersion);
        $needVersion = new Version($version);

        if (!$sysVersion->isPartOf($needVersion))
        {
            $this->errors->add('module_dependency_sys', 'This module not made for current version of '.$this->systemName.', made for '.$version);
            return false;
        }
        return false;
    }
protected function sysVersionDependency($version)
    {
        $sysVersion = new Version($this->sysMajorVersion.'.'.$this->sysMinorVersion.'.'.$this->sysPathVersion);
        $needVersion = new Version($version);

        if (!$sysVersion->isPartOf($needVersion))
        {
            $this->errors->add('module_dependency_sys', 'This module not made for current version of '.$this->systemName.', made for '.$version);
            return false;
        }
        return false;
    }
protected function sysVersionDependency ( $ version ) { $ sysVersion = new Version ( $ this -> sysMajorVersion . '.' . $ this -> sysMinorVersion . '.' . $ this -> sysPathVersion ) ; $ needVersion = new Version ( $ version ) ; if ( ! $ sysVersion -> isPartOf ( $ needVersion ) ) { $ this -> errors -> add ( 'module_dependency_sys' , 'This module not made for current version of ' . $ this -> systemName . ', made for ' . $ version ) ; return false ; } return false ; }
Check system dependency

@param string $version
@return bool
Check system dependency