original_string: public static function get_collection($component, $itemtype) {
          $itemtypes = self::get_areas();
          if (array_key_exists($itemtype, $itemtypes)) {
              if (!array_key_exists($component, $itemtypes[$itemtype])) {
                  $component = key($itemtypes[$itemtype]);
              }
              return $itemtypes[$itemtype][$component]->tagcollid;
          }
          return core_tag_collection::get_default();
      }
code: public static function get_collection($component, $itemtype) {
          $itemtypes = self::get_areas();
          if (array_key_exists($itemtype, $itemtypes)) {
              if (!array_key_exists($component, $itemtypes[$itemtype])) {
                  $component = key($itemtypes[$itemtype]);
              }
              return $itemtypes[$itemtype][$component]->tagcollid;
          }
          return core_tag_collection::get_default();
      }
code_tokens: public static function get_collection ( $ component , $ itemtype ) { $ itemtypes = self :: get_areas ( ) ; if ( array_key_exists ( $ itemtype , $ itemtypes ) ) { if ( ! array_key_exists ( $ component , $ itemtypes [ $ itemtype ] ) ) { $ component = key ( $ itemtypes [ $ itemtype ] ) ; } return $ itemtypes [ $ itemtype ] [ $ component ] -> tagcollid ; } return core_tag_collection :: get_default ( ) ; }
docstring: Returns the id of the tag collection that should be used for storing tags of this itemtype
  
  @param string $component component responsible for tagging
  @param string $itemtype what is being tagged, for example, 'post', 'course', 'user', etc.
  @return int
docstring_tokens: Returns the id of the tag collection that should be used for storing tags of this itemtype