public static function is_minor($age, $country) {
        global $CFG;

        $ageconsentmap = $CFG->agedigitalconsentmap;
        $agedigitalconsentmap = self::parse_age_digital_consent_map($ageconsentmap);

        return array_key_exists($country, $agedigitalconsentmap) ?
            $age < $agedigitalconsentmap[$country] : $age < $agedigitalconsentmap['*'];
    }
public static function is_minor($age, $country) {
        global $CFG;

        $ageconsentmap = $CFG->agedigitalconsentmap;
        $agedigitalconsentmap = self::parse_age_digital_consent_map($ageconsentmap);

        return array_key_exists($country, $agedigitalconsentmap) ?
            $age < $agedigitalconsentmap[$country] : $age < $agedigitalconsentmap['*'];
    }
public static function is_minor ( $ age , $ country ) { global $ CFG ; $ ageconsentmap = $ CFG -> agedigitalconsentmap ; $ agedigitalconsentmap = self :: parse_age_digital_consent_map ( $ ageconsentmap ) ; return array_key_exists ( $ country , $ agedigitalconsentmap ) ? $ age < $ agedigitalconsentmap [ $ country ] : $ age < $ agedigitalconsentmap [ '*' ] ; }
Checks if a user is a digital minor.

@param int $age
@param string $country The country code (ISO 3166-2)
@return bool
Checks if a user is a digital minor .