public function is_core_dependency_satisfied($moodleversion) {

        if (empty($this->versionrequires)) {
            return true;

        } else {
            return (double)$this->versionrequires <= (double)$moodleversion;
        }
    }
public function is_core_dependency_satisfied($moodleversion) {

        if (empty($this->versionrequires)) {
            return true;

        } else {
            return (double)$this->versionrequires <= (double)$moodleversion;
        }
    }
public function is_core_dependency_satisfied ( $ moodleversion ) { if ( empty ( $ this -> versionrequires ) ) { return true ; } else { return ( double ) $ this -> versionrequires <= ( double ) $ moodleversion ; } }
Returns true if the the given Moodle version is enough to run this plugin

@param string|int|double $moodleversion
@return bool
Returns true if the the given Moodle version is enough to run this plugin