C# Class Core.Web.Helpers.PageHelper

Afficher le fichier Open project: coreframework/Core-Framework

Méthodes publiques

Méthode Description
AddWidgetToPage ( long pageId, long widgetId, ICorePrincipal user, long templateWidgetId ) : PageWidget

Adds the widget to page.

BindPageViewModel ( Page page, ICorePrincipal user ) : PageViewModel

Binds the page view model.

ChangePageMode ( PageMode pageMode ) : void
ClonePageSettings ( Page sourcePage, Page targetPage ) : bool

Clones the target page settings to source page.

ClonePageSettingsFromTemplate ( Page template, Page targetPage, long widgetId ) : bool
Flatten ( NavigationMenuItemModel root, List items, int level, bool addNewPagesAccess, PageMode pageMode ) : List
GetNavigationMenu ( PageViewModel currentPage, ICorePrincipal user ) : NavigationMenuModel

Gets the navigation menu.

GetPageHolderStyles ( PageSettings settings ) : String

Gets the page holder styles.

GetPageInnerHolderStyles ( PageSettings settings ) : String

Gets the page inner holder styles.

RemovePage ( Page page ) : void

Removes the page.

RemoveWidgetFromPage ( long pageWidgetId, ICorePrincipal user ) : void

Removes the widget from page.

UnlinkPage ( Page page ) : void

Unlinks the page.

UnlinkTemplatePages ( Page pageTemplate ) : void

Unlinks the template pages.

UpdatePagesPositions ( long pageId, int orderNumber ) : void

Updates the pages positions.

UpdateWidgetsPositions ( long pageWidgetId, int pageSection, int columnNumber, int orderNumber, ICorePrincipal user ) : void

Updates the widgets positions.

Private Methods

Méthode Description
AppendStyleString ( StringBuilder builder, String styleName, String styleValue ) : void

Appends the style string.

CloneWidgetInstance ( PageWidget widget ) : long?

Clones the widget instance.

Method Details

AddWidgetToPage() public static méthode

Adds the widget to page.
public static AddWidgetToPage ( long pageId, long widgetId, ICorePrincipal user, long templateWidgetId ) : PageWidget
pageId long The page id.
widgetId long The widget id.
user ICorePrincipal The user.
templateWidgetId long The template widget id.
Résultat Core.Web.NHibernate.Models.PageWidget

BindPageViewModel() public static méthode

Binds the page view model.
public static BindPageViewModel ( Page page, ICorePrincipal user ) : PageViewModel
page Page The page.
user ICorePrincipal The user.
Résultat PageViewModel

ChangePageMode() public static méthode

public static ChangePageMode ( PageMode pageMode ) : void
pageMode PageMode
Résultat void

ClonePageSettings() public static méthode

Clones the target page settings to source page.
public static ClonePageSettings ( Page sourcePage, Page targetPage ) : bool
sourcePage Page The source page.
targetPage Page The target page.
Résultat bool

ClonePageSettingsFromTemplate() public static méthode

public static ClonePageSettingsFromTemplate ( Page template, Page targetPage, long widgetId ) : bool
template Page
targetPage Page
widgetId long
Résultat bool

Flatten() public static méthode

public static Flatten ( NavigationMenuItemModel root, List items, int level, bool addNewPagesAccess, PageMode pageMode ) : List
root NavigationMenuItemModel
items List
level int
addNewPagesAccess bool
pageMode PageMode
Résultat List

GetNavigationMenu() public static méthode

Gets the navigation menu.
public static GetNavigationMenu ( PageViewModel currentPage, ICorePrincipal user ) : NavigationMenuModel
currentPage PageViewModel
user ICorePrincipal
Résultat Core.Web.Models.NavigationMenuModel

GetPageHolderStyles() public static méthode

Gets the page holder styles.
public static GetPageHolderStyles ( PageSettings settings ) : String
settings Core.Web.NHibernate.Models.PageSettings The settings.
Résultat String

GetPageInnerHolderStyles() public static méthode

Gets the page inner holder styles.
public static GetPageInnerHolderStyles ( PageSettings settings ) : String
settings Core.Web.NHibernate.Models.PageSettings The settings.
Résultat String

RemovePage() public static méthode

Removes the page.
public static RemovePage ( Page page ) : void
page Page The page.
Résultat void

RemoveWidgetFromPage() public static méthode

Removes the widget from page.
public static RemoveWidgetFromPage ( long pageWidgetId, ICorePrincipal user ) : void
pageWidgetId long The page widget id.
user ICorePrincipal The user.
Résultat void

UnlinkPage() public static méthode

Unlinks the page.
public static UnlinkPage ( Page page ) : void
page Page The page.
Résultat void

UnlinkTemplatePages() public static méthode

Unlinks the template pages.
public static UnlinkTemplatePages ( Page pageTemplate ) : void
pageTemplate Page The page template.
Résultat void

UpdatePagesPositions() public static méthode

Updates the pages positions.
public static UpdatePagesPositions ( long pageId, int orderNumber ) : void
pageId long The page id.
orderNumber int The order number.
Résultat void

UpdateWidgetsPositions() public static méthode

Updates the widgets positions.
public static UpdateWidgetsPositions ( long pageWidgetId, int pageSection, int columnNumber, int orderNumber, ICorePrincipal user ) : void
pageWidgetId long The page widget id.
pageSection int
columnNumber int The column number.
orderNumber int The order number.
user ICorePrincipal The user.
Résultat void