original_string: public static function allows_tagging_in_multiple_contexts($component, $itemtype) {
          $itemtypes = self::get_areas();
          if (isset($itemtypes[$itemtype][$component])) {
              $config = $itemtypes[$itemtype][$component];
              return isset($config->multiplecontexts) ? $config->multiplecontexts : false;
          }
          return false;
      }
code: public static function allows_tagging_in_multiple_contexts($component, $itemtype) {
          $itemtypes = self::get_areas();
          if (isset($itemtypes[$itemtype][$component])) {
              $config = $itemtypes[$itemtype][$component];
              return isset($config->multiplecontexts) ? $config->multiplecontexts : false;
          }
          return false;
      }
code_tokens: public static function allows_tagging_in_multiple_contexts ( $ component , $ itemtype ) { $ itemtypes = self :: get_areas ( ) ; if ( isset ( $ itemtypes [ $ itemtype ] [ $ component ] ) ) { $ config = $ itemtypes [ $ itemtype ] [ $ component ] ; return isset ( $ config -> multiplecontexts ) ? $ config -> multiplecontexts : false ; } return false ; }
docstring: Checks if the tag area allows items to be tagged in multiple different contexts.
  
  If true then it indicates that not all tag instance contexts must match the
  context of the item they are tagging. If false then all tag instance should
  match the context of the item they are tagging.
  
  Example use case for multi-context tagging:
  A question that exists in a course category context may be used by multiple
  child courses. The question tag area can allow tag instances to be created in
  multiple contexts which allows the tag API to tag the question at the course
  category context and then seperately in each of the child course contexts.
  
  @param string $component component responsible for tagging
  @param string $itemtype what is being tagged, for example, 'post', 'course', 'user', etc.
  @return bool
docstring_tokens: Checks if the tag area allows items to be tagged in multiple different contexts .