protected static function is_minimum_version_met() {
        global $CFG;

        $currentversion = 0;
        $supportedversion = 0.7;
        $unoconvbin = \escapeshellarg($CFG->pathtounoconv);
        $command = "$unoconvbin --version";
        exec($command, $output);

        // If the command execution returned some output, then get the unoconv version.
        if ($output) {
            foreach ($output as $response) {
                if (preg_match('/unoconv (\\d+\\.\\d+)/', $response, $matches)) {
                    $currentversion = (float) $matches[1];
                }
            }
            if ($currentversion < $supportedversion) {
                return false;
            } else {
                return true;
            }
        }

        return false;
    }
protected static function is_minimum_version_met() {
        global $CFG;

        $currentversion = 0;
        $supportedversion = 0.7;
        $unoconvbin = \escapeshellarg($CFG->pathtounoconv);
        $command = "$unoconvbin --version";
        exec($command, $output);

        // If the command execution returned some output, then get the unoconv version.
        if ($output) {
            foreach ($output as $response) {
                if (preg_match('/unoconv (\\d+\\.\\d+)/', $response, $matches)) {
                    $currentversion = (float) $matches[1];
                }
            }
            if ($currentversion < $supportedversion) {
                return false;
            } else {
                return true;
            }
        }

        return false;
    }
protected static function is_minimum_version_met ( ) { global $ CFG ; $ currentversion = 0 ; $ supportedversion = 0.7 ; $ unoconvbin = \ escapeshellarg ( $ CFG -> pathtounoconv ) ; $ command = "$unoconvbin --version" ; exec ( $ command , $ output ) ; // If the command execution returned some output, then get the unoconv version. if ( $ output ) { foreach ( $ output as $ response ) { if ( preg_match ( '/unoconv (\\d+\\.\\d+)/' , $ response , $ matches ) ) { $ currentversion = ( float ) $ matches [ 1 ] ; } } if ( $ currentversion < $ supportedversion ) { return false ; } else { return true ; } } return false ; }
Whether the minimum version of unoconv has been met.

@return  bool
Whether the minimum version of unoconv has been met .