C# Class Sitecore.Modules.WeBlog.Managers.TagManager

Inheritance: ITagManager
Mostra file Open project: WeTeam/WeBlog Class Usage Examples

Public Methods

Method Description
GetTagsForBlog ( BlogHomeItem blog ) : Tag[]

Gets the tags for the blog

GetTagsForEntry ( EntryItem entry ) : Tag[]

Gets the tags for a blog entry and sorts by weight

TagManager ( ) : System
TagManager ( IEntryManager entryManager = null ) : System

Protected Methods

Method Description
ExtractAndSortTags ( IEnumerable entries ) : Tag[]

Extracts the tags from a collection of

Private Methods

Method Description
GetAllTags ( ) : int>.Dictionary
GetAllTags ( BlogHomeItem blog ) : int>.Dictionary
GetTagsByBlog ( ID blogId ) : string[]
GetTagsByBlog ( System.Item blogItem ) : string[]
GetTagsByEntry ( EntryItem entry ) : int>.Dictionary
SortByWeight ( IEnumerable tags ) : int>.Dictionary

Method Details

ExtractAndSortTags() protected method

Extracts the tags from a collection of
protected ExtractAndSortTags ( IEnumerable entries ) : Tag[]
entries IEnumerable The entries to get the tags from
return Tag[]

GetTagsForBlog() public method

Gets the tags for the blog
public GetTagsForBlog ( BlogHomeItem blog ) : Tag[]
blog Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem
return Tag[]

GetTagsForEntry() public method

Gets the tags for a blog entry and sorts by weight
public GetTagsForEntry ( EntryItem entry ) : Tag[]
entry Sitecore.Modules.WeBlog.Data.Items.EntryItem The entry to get the tags for
return Tag[]

TagManager() public method

public TagManager ( ) : System
return System

TagManager() public method

public TagManager ( IEntryManager entryManager = null ) : System
entryManager IEntryManager
return System