메소드 | 설명 | |
---|---|---|
AddPage ( |
Adds the page to the database.
|
|
AllPages ( bool loadPageContent = false ) : IEnumerable |
Retrieves a list of all pages in the system.
|
|
AllPagesCreatedBy ( string userName ) : IEnumerable |
Gets alls the pages created by a user.
|
|
AllTags ( ) : IEnumerable |
Retrieves a list of all tags in the system.
|
|
ClearPageTables ( ) : void |
Clears all pages and page content from the database.
|
|
DeletePage ( int pageId ) : void |
Deletes a page from the database.
|
|
ExportToXml ( ) : string |
Exports all pages in the database, including content, to an XML format.
|
|
FindByTag ( string tag ) : IEnumerable |
Finds all pages with the given tag.
|
|
FindByTitle ( string title ) : |
Finds a page by its title
|
|
FindHomePage ( ) : |
Finds the first page with the tag 'homepage'. Any pages that are locked by an administrator take precedence.
|
|
GetActivity ( ) : IEnumerable |
Finds all relationships related to the page.
|
|
GetBootStrapNavMenu ( IUserContext userContext ) : string |
Retrieves the (usually left) menu containing the new page, settings etc. options
|
|
GetById ( int id, bool loadContent = false ) : |
Retrieves the page by its id.
|
|
GetCurrentContent ( int pageId ) : |
Retrieves the current text content for a page.
|
|
GetMarkupConverter ( ) : Roadkill.Core.Converters.MarkupConverter |
Retrieves the MarkupConverter used by this IPageService.
|
|
GetMenu ( IUserContext userContext ) : string |
Retrieves the (usually left) menu containing the new page, settings etc. options
|
|
GetRelByPage ( int pageid ) : IEnumerable |
Finds all relationships related to the page.
|
|
PageService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository, |
||
RenameTag ( string oldTagName, string newTagName ) : void |
Renames a tag by changing all pages that reference the tag to use the new tag name.
|
|
UpdateLinksToPage ( string oldTitle, string newTitle ) : void |
Updates all links in pages to another page, when that page's title is changed.
|
|
UpdatePage ( |
Updates the provided page.
|
메소드 | 설명 | |
---|---|---|
AppendIpForDemoSite ( string username ) : string |
Adds an IP address after the username for any demo site vandalism.
|
|
GetCollapsableMenuHtml ( ) : string |
Adds the Adidas bar to the nav bar so it can be collapsed on mobile devices
|
public AddPage ( |
||
model | The summary details for the page. | |
리턴 |
public AllPages ( bool loadPageContent = false ) : IEnumerable |
||
loadPageContent | bool | |
리턴 | IEnumerable |
public AllPagesCreatedBy ( string userName ) : IEnumerable |
||
userName | string | Name of the user. |
리턴 | IEnumerable |
public DeletePage ( int pageId ) : void | ||
pageId | int | The id of the page to remove. |
리턴 | void |
public FindByTag ( string tag ) : IEnumerable |
||
tag | string | The tag to search for. |
리턴 | IEnumerable |
public FindByTitle ( string title ) : |
||
title | string | The page title |
리턴 |
public FindHomePage ( ) : |
||
리턴 |
public GetBootStrapNavMenu ( IUserContext userContext ) : string | ||
userContext | IUserContext | |
리턴 | string |
public GetById ( int id, bool loadContent = false ) : |
||
id | int | The id of the page |
loadContent | bool | |
리턴 |
public GetCurrentContent ( int pageId ) : |
||
pageId | int | The id of the page. |
리턴 |
public GetMarkupConverter ( ) : Roadkill.Core.Converters.MarkupConverter | ||
리턴 | Roadkill.Core.Converters.MarkupConverter |
public GetMenu ( IUserContext userContext ) : string | ||
userContext | IUserContext | |
리턴 | string |
public PageService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository, |
||
settings | Roadkill.Core.Configuration.ApplicationSettings | |
repository | IRepository | |
searchService | ||
historyService | ||
context | IUserContext | |
listCache | ListCache | |
pageViewModelCache | Roadkill.Core.Cache.PageViewModelCache | |
sitecache | Roadkill.Core.Cache.SiteCache | |
pluginFactory | IPluginFactory | |
리턴 | System |
public RenameTag ( string oldTagName, string newTagName ) : void | ||
oldTagName | string | |
newTagName | string | |
리턴 | void |
public UpdateLinksToPage ( string oldTitle, string newTitle ) : void | ||
oldTitle | string | The previous page title. |
newTitle | string | The new page title. |
리턴 | void |
public UpdatePage ( |
||
model | The summary. | |
리턴 | void |