Trean_View_BookmarkList::_getRelatedTags PHP Method

_getRelatedTags() protected method

Get HTML to display the related tags links.
protected _getRelatedTags ( ) : string
return string
    protected function _getRelatedTags()
    {
        $uids = array();
        foreach ($this->_bookmarks as $bookmark) {
            $uids[] = (string) $bookmark->id;
        }
        $rtags = $this->_browser->getRelatedTags($uids);
        if (count($rtags)) {
            $html = '<div class="trean-tags-related">' . Horde::img('tags.png') . ' <ul class="horde-tags">';
            foreach (array_values($rtags) as $taginfo) {
                $html .= '<li>' . $GLOBALS['injector']->getInstance('Trean_TagBrowser')->addTagLink($taginfo['tag_name'])->link() . htmlspecialchars($taginfo['tag_name']) . '</a></li>';
            }
            return $html . '</ul></div>';
        }
        return '';
    }