original_string: public static function get_effective_context_purpose(\context $context, $forcedvalue = false) {
          if (!data_registry::defaults_set()) {
              return false;
          }
  
          return data_registry::get_effective_context_value($context, 'purpose', $forcedvalue);
      }
code: public static function get_effective_context_purpose(\context $context, $forcedvalue = false) {
          if (!data_registry::defaults_set()) {
              return false;
          }
  
          return data_registry::get_effective_context_value($context, 'purpose', $forcedvalue);
      }
code_tokens: public static function get_effective_context_purpose ( \ context $ context , $ forcedvalue = false ) { if ( ! data_registry :: defaults_set ( ) ) { return false ; } return data_registry :: get_effective_context_value ( $ context , 'purpose' , $ forcedvalue ) ; }
docstring: Returns the effective purpose given a context instance.
  
  @param \context $context
  @param int $forcedvalue Use this purposeid value as if this was this context instance purpose.
  @return purpose|false
docstring_tokens: Returns the effective purpose given a context instance .