Метод | Описание | |
---|---|---|
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 GetRelByPage ( int pageid ) : IEnumerable |
||
pageid | int | |
Результат | IEnumerable |
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 |