C# 클래스 Sitecore.Modules.WeBlog.Managers.BlogManager

Provides utilities for working with blogs
상속: IBlogManager
파일 보기 프로젝트 열기: WeTeam/WeBlog 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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