public static function get_item_tags_array($component, $itemtype, $itemid, $standardonly = self::BOTH_STANDARD_AND_NOT,
            $tiuserid = 0, $ashtml = true) {
        $tags = array();
        foreach (static::get_item_tags($component, $itemtype, $itemid, $standardonly, $tiuserid) as $tag) {
            $tags[$tag->id] = $tag->get_display_name($ashtml);
        }
        return $tags;
    }
public static function get_item_tags_array($component, $itemtype, $itemid, $standardonly = self::BOTH_STANDARD_AND_NOT,
            $tiuserid = 0, $ashtml = true) {
        $tags = array();
        foreach (static::get_item_tags($component, $itemtype, $itemid, $standardonly, $tiuserid) as $tag) {
            $tags[$tag->id] = $tag->get_display_name($ashtml);
        }
        return $tags;
    }
public static function get_item_tags_array ( $ component , $ itemtype , $ itemid , $ standardonly = self :: BOTH_STANDARD_AND_NOT , $ tiuserid = 0 , $ ashtml = true ) { $ tags = array ( ) ; foreach ( static :: get_item_tags ( $ component , $ itemtype , $ itemid , $ standardonly , $ tiuserid ) as $ tag ) { $ tags [ $ tag -> id ] = $ tag -> get_display_name ( $ ashtml ) ; } return $ tags ; }
Returns the list of display names of the tags that are associated with an item

This method is usually used to prefill the form data for the 'tags' form element

@param string $component component responsible for tagging. For BC it can be empty but in this case the
query will be slow because DB index will not be used.
@param string $itemtype type of the tagged item
@param int $itemid
@param int $standardonly wether to return only standard tags or any
@param int $tiuserid tag instance user id, only needed for tag areas with user tagging
@param bool $ashtml (default true) if true will return htmlspecialchars encoded tag names
@return string[] array of tags display names
Returns the list of display names of the tags that are associated with an item