public static function get_effective_context_category(\context $context, $forcedvalue = false) {
        if (!data_registry::defaults_set()) {
            return false;
        }

        return data_registry::get_effective_context_value($context, 'category', $forcedvalue);
    }
public static function get_effective_context_category(\context $context, $forcedvalue = false) {
        if (!data_registry::defaults_set()) {
            return false;
        }

        return data_registry::get_effective_context_value($context, 'category', $forcedvalue);
    }
public static function get_effective_context_category ( \ context $ context , $ forcedvalue = false ) { if ( ! data_registry :: defaults_set ( ) ) { return false ; } return data_registry :: get_effective_context_value ( $ context , 'category' , $ forcedvalue ) ; }
Returns the effective category given a context instance.

@param \context $context
@param int $forcedvalue Use this categoryid value as if this was this context instance category.
@return category|false
Returns the effective category given a context instance .