C# Класс Sitecore.Modules.WeBlog.Managers.BlogManager

Provides utilities for working with blogs
Наследование: IBlogManager
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
Settings IWeBlogSettings

Открытые методы

Метод Описание
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

Описание методов

BlogManager() публичный Метод

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.
Результат System.Collections.Generic

EnableRSS() публичный Метод

Checks if the current blog has RSS enabled
public EnableRSS ( ) : bool
Результат bool

EnableRSS() публичный Метод

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
Результат bool

GetAllBlogs() публичный Метод

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
Результат Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem[]

GetCurrentBlog() публичный Метод

Gets the current blog for the context item
public GetCurrentBlog ( ) : BlogHomeItem
Результат Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem

GetCurrentBlog() публичный Метод

Gets the current blog for the item
public GetCurrentBlog ( Item item ) : BlogHomeItem
item Item The item to find the current blog for
Результат Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem

GetDictionaryItem() публичный Метод

Returns the dictionary item.
public GetDictionaryItem ( ) : Item
Результат Item

GetUserBlogs() публичный Метод

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
Результат Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem[]

ShowEmailWithinComments() публичный Метод

Checks if emails should be displayed with comments
public ShowEmailWithinComments ( ) : bool
Результат bool

ShowEmailWithinComments() публичный Метод

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
Результат bool

Описание свойств

Settings защищенное свойство

The IWeBlogSettings to access settings from.
protected IWeBlogSettings Settings
Результат IWeBlogSettings