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

Provides utilities for working with blogs
Inheritance: IBlogManager
ファイルを表示 Open project: WeTeam/WeBlog Class Usage Examples

Protected Properties

Property Type Description
Settings IWeBlogSettings

Public Methods

Method Description
BlogManager ( IWeBlogSettings settings = null ) : System.Collections.Generic

Creates a new instance.

EnableRSS ( ) : bool

Checks if the current blog has RSS enabled

EnableRSS ( BlogHomeItem blog ) : bool

Checks if the current blog has RSS enabled

GetAllBlogs ( Database database = null ) : Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem[]

Gets all the blogs.

GetCurrentBlog ( ) : BlogHomeItem

Gets the current blog for the context item

GetCurrentBlog ( Item item ) : BlogHomeItem

Gets the current blog for the item

GetDictionaryItem ( ) : Item

Returns the dictionary item.

GetUserBlogs ( string username ) : Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem[]

Get all blogs the user has write access to from the content database

ShowEmailWithinComments ( ) : bool

Checks if emails should be displayed with comments

ShowEmailWithinComments ( BlogHomeItem blog ) : bool

Checks if emails should be displayed with comments

Method Details

BlogManager() public method

Creates a new instance.
public BlogManager ( IWeBlogSettings settings = null ) : System.Collections.Generic
settings IWeBlogSettings The settings to use. If null, the default settings will be used.
return System.Collections.Generic

EnableRSS() public method

Checks if the current blog has RSS enabled
public EnableRSS ( ) : bool
return bool

EnableRSS() public method

Checks if the current blog has RSS enabled
public EnableRSS ( BlogHomeItem blog ) : bool
blog Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem The blog to read the setting from
return bool

GetAllBlogs() public method

Gets all the blogs.
public GetAllBlogs ( Database database = null ) : Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem[]
database Database The database to get the blogs from. If null, use the context database
return Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem[]

GetCurrentBlog() public method

Gets the current blog for the context item
public GetCurrentBlog ( ) : BlogHomeItem
return Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem

GetCurrentBlog() public method

Gets the current blog for the item
public GetCurrentBlog ( Item item ) : BlogHomeItem
item Item The item to find the current blog for
return Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem

GetDictionaryItem() public method

Returns the dictionary item.
public GetDictionaryItem ( ) : Item
return Item

GetUserBlogs() public method

Get all blogs the user has write access to from the content database
public GetUserBlogs ( string username ) : Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem[]
username string The name of the user requiring write access to the blog
return Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem[]

ShowEmailWithinComments() public method

Checks if emails should be displayed with comments
public ShowEmailWithinComments ( ) : bool
return bool

ShowEmailWithinComments() public method

Checks if emails should be displayed with comments
public ShowEmailWithinComments ( BlogHomeItem blog ) : bool
blog Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem The blog to read the setting from
return bool

Property Details

Settings protected_oe property

The IWeBlogSettings to access settings from.
protected IWeBlogSettings Settings
return IWeBlogSettings