public static function get_effective_contextlevel_purpose($contextlevel, $forcedvalue=false) {
        if (!data_registry::defaults_set()) {
            return false;
        }

        return data_registry::get_effective_contextlevel_value($contextlevel, 'purpose', $forcedvalue);
    }
public static function get_effective_contextlevel_purpose($contextlevel, $forcedvalue=false) {
        if (!data_registry::defaults_set()) {
            return false;
        }

        return data_registry::get_effective_contextlevel_value($contextlevel, 'purpose', $forcedvalue);
    }
public static function get_effective_contextlevel_purpose ( $ contextlevel , $ forcedvalue = false ) { if ( ! data_registry :: defaults_set ( ) ) { return false ; } return data_registry :: get_effective_contextlevel_value ( $ contextlevel , 'purpose' , $ forcedvalue ) ; }
Returns the effective purpose given a context level.

@param int $contextlevel
@param int $forcedvalue Use this purposeid value as if this was this context level purpose.
@return purpose|false
Returns the effective purpose given a context level .