public function checkCore(array $module)
    {
        if (!isset($module['core'])) {
            throw new OutOfBoundsException($this->translation->text('Missing core version'));
        }

        if (version_compare(gplcart_version(), $module['core']) < 0) {
            throw new UnexpectedValueException($this->translation->text('Module incompatible with the current system core version'));
        }

        return true;
    }
public function checkCore(array $module)
    {
        if (!isset($module['core'])) {
            throw new OutOfBoundsException($this->translation->text('Missing core version'));
        }

        if (version_compare(gplcart_version(), $module['core']) < 0) {
            throw new UnexpectedValueException($this->translation->text('Module incompatible with the current system core version'));
        }

        return true;
    }
public function checkCore ( array $ module ) { if ( ! isset ( $ module [ 'core' ] ) ) { throw new OutOfBoundsException ( $ this -> translation -> text ( 'Missing core version' ) ) ; } if ( version_compare ( gplcart_version ( ) , $ module [ 'core' ] ) < 0 ) { throw new UnexpectedValueException ( $ this -> translation -> text ( 'Module incompatible with the current system core version' ) ) ; } return true ; }
Checks core version requirements
@param array $module
@return boolean
@throws OutOfBoundsException
@throws UnexpectedValueException
Checks core version requirements