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();
    }
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();
    }
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 ( ) ; }
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
Returns the id of the tag collection that should be used for storing tags of this itemtype