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

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

보호된 프로퍼티들

프로퍼티 타입 설명
ReportDataProvider ReportDataProviderBase
Settings IWeBlogSettings

공개 메소드들

메소드 설명
DeleteEntry ( string postID, Database db ) : bool

Deletes a blog post

EntryManager ( ) : Sitecore.Analytics.Reporting
EntryManager ( IWeBlogSettings settings ) : Sitecore.Analytics.Reporting
EntryManager ( ReportDataProviderBase reportDataProvider, IWeBlogSettings settings ) : Sitecore.Analytics.Reporting
GetBlogEntries ( ID blogID, Database database, int maxNumber ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

Gets blog entries for the given blog up to the maximum number given

GetBlogEntries ( ID blogID, Database database, int maxNumber, string tag ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

Gets blog entries for the given blog up to the maximum number given

GetBlogEntries ( System.Item blogItem ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

Gets blog entries for the given blog

GetBlogEntries ( System.Item blog, int maxNumber, string tag, string category, System.DateTime minimumDate = null, System.DateTime maximumDate = null ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

Gets blog entries for the given blog up to the maximum number given

GetBlogEntriesByMonthAndYear ( System.Item blog, int month, int year ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

Gets the blog entries for a particular month and year.

GetBlogEntryByComment ( Sitecore.Modules.WeBlog.Items.WeBlog.CommentItem commentItem ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem

Gets the entry item for the current comment.

GetPopularEntriesByComment ( System.Item blogItem, int maxCount ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

Gets the most popular entries for the blog by the number of comments on the entry

GetPopularEntriesByView ( System.Item blogItem, int maxCount ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

Gets the most popular entries for the blog by the number of page views

보호된 메소드들

메소드 설명
AnalyticsEnabled ( ) : bool
GetItemViews ( ID itemId ) : long

Gets the number of views for the item given by ID.

비공개 메소드들

메소드 설명
DeleteEntry ( string postID ) : bool
GetBlogEntries ( ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
GetBlogEntries ( ID blogID, int maxNumber ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
GetBlogEntries ( ID blogID, int maxNumber, string tag ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
GetBlogEntries ( System.Item blog, int maxNumber, string tag, string category, string datePrefix = null ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
GetBlogEntries ( int maxNumber ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
GetBlogEntries ( int maxNumber, string tag ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
GetBlogEntries ( string tag ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
GetBlogEntriesByMonthAndYear ( int month, int year ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
GetBlogEntryByCategorie ( ID blogId, ID categoryId ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
GetBlogEntryByCategorie ( ID blogId, string categorieName ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
GetCurrentBlogEntry ( ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem
GetCurrentBlogEntry ( System.Item item ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem
MakeSortedEntriesList ( IList array ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

메소드 상세

AnalyticsEnabled() 보호된 정적인 메소드

protected static AnalyticsEnabled ( ) : bool
리턴 bool

DeleteEntry() 공개 메소드

Deletes a blog post
public DeleteEntry ( string postID, Database db ) : bool
postID string The ID of the post to delete
db Database The database to delete the entry from
리턴 bool

EntryManager() 공개 메소드

public EntryManager ( ) : Sitecore.Analytics.Reporting
리턴 Sitecore.Analytics.Reporting

EntryManager() 공개 메소드

public EntryManager ( IWeBlogSettings settings ) : Sitecore.Analytics.Reporting
settings IWeBlogSettings
리턴 Sitecore.Analytics.Reporting

EntryManager() 공개 메소드

public EntryManager ( ReportDataProviderBase reportDataProvider, IWeBlogSettings settings ) : Sitecore.Analytics.Reporting
reportDataProvider ReportDataProviderBase
settings IWeBlogSettings
리턴 Sitecore.Analytics.Reporting

GetBlogEntries() 공개 메소드

Gets blog entries for the given blog up to the maximum number given
public GetBlogEntries ( ID blogID, Database database, int maxNumber ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
blogID ID The ID of the blog to get the entries for
database Database The database to get the blog from
maxNumber int The maximum number of entries to retrieve
리턴 Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

GetBlogEntries() 공개 메소드

Gets blog entries for the given blog up to the maximum number given
public GetBlogEntries ( ID blogID, Database database, int maxNumber, string tag ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
blogID ID The ID of the blog to get the entries for
database Database The database to get the blog from
maxNumber int The maximum number of entries to retrieve
tag string A tag the entry must contain
리턴 Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

GetBlogEntries() 공개 메소드

Gets blog entries for the given blog
public GetBlogEntries ( System.Item blogItem ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
blogItem System.Item The blog item to retrieve the entries for
리턴 Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

GetBlogEntries() 공개 메소드

Gets blog entries for the given blog up to the maximum number given
public GetBlogEntries ( System.Item blog, int maxNumber, string tag, string category, System.DateTime minimumDate = null, System.DateTime maximumDate = null ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
blog System.Item The blog item to get the entries for
maxNumber int The maximum number of entries to retrieve
tag string A tag the entry must contain
category string A category the entry must contain
minimumDate System.DateTime The minimum date for entries
maximumDate System.DateTime The maximum date for the entries
리턴 Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

GetBlogEntriesByMonthAndYear() 공개 메소드

Gets the blog entries for a particular month and year.
public GetBlogEntriesByMonthAndYear ( System.Item blog, int month, int year ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
blog System.Item
month int The month to get the entries for
year int The year to get the entries for
리턴 Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

GetBlogEntryByComment() 공개 메소드

Gets the entry item for the current comment.
public GetBlogEntryByComment ( Sitecore.Modules.WeBlog.Items.WeBlog.CommentItem commentItem ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem
commentItem Sitecore.Modules.WeBlog.Items.WeBlog.CommentItem The comment item.
리턴 Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem

GetItemViews() 보호된 메소드

Gets the number of views for the item given by ID.
protected GetItemViews ( ID itemId ) : long
itemId ID The ID of the item to get the views for.
리턴 long

GetPopularEntriesByComment() 공개 메소드

Gets the most popular entries for the blog by the number of comments on the entry
public GetPopularEntriesByComment ( System.Item blogItem, int maxCount ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
blogItem System.Item The blog to find the most popular pages for
maxCount int The maximum number of entries to return
리턴 Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

GetPopularEntriesByView() 공개 메소드

Gets the most popular entries for the blog by the number of page views
public GetPopularEntriesByView ( System.Item blogItem, int maxCount ) : Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]
blogItem System.Item The blog to find the most popular pages for
maxCount int The maximum number of entries to return
리턴 Sitecore.Modules.WeBlog.Items.WeBlog.EntryItem[]

프로퍼티 상세

ReportDataProvider 보호되어 있는 프로퍼티

The ReportDataProviderBase to read reporting data from.
protected ReportDataProviderBase ReportDataProvider
리턴 ReportDataProviderBase

Settings 보호되어 있는 프로퍼티

The settings to use.
protected IWeBlogSettings Settings
리턴 IWeBlogSettings