C# Class ToSic.SexyContent.App

The app class gives access to the App-object - for the data and things like the App:Path placeholder in a template
Datei anzeigen Open project: 2sic/2sxc Class Usage Examples

Private Properties

Property Type Description
ConfigureDataOnDemand void
InitData void
InitializeResourcesSettingsAndMetadata void

Public Methods

Method Description
App ( DotNetNuke.Entities.Portals.PortalSettings ownerPortalSettings, int appId ) : System
App ( int zoneId, int appId, DotNetNuke.Entities.Portals.PortalSettings ownerPortalSettings, bool allowSideEffects = true ) : System

Private Methods

Method Description
ConfigureDataOnDemand ( ) : void
InitData ( bool showDrafts, IValueCollectionProvider configurationValues ) : void

needed to initialize data - must always happen a bit later because the show-draft info isn't available when creating the first App-object. todo: later this should be moved to initialization of this object

InitializeResourcesSettingsAndMetadata ( bool allowSideEffects ) : void

Assign all kinds of metadata / resources / settings (App-Mode only)

Method Details

App() public method

public App ( DotNetNuke.Entities.Portals.PortalSettings ownerPortalSettings, int appId ) : System
ownerPortalSettings DotNetNuke.Entities.Portals.PortalSettings
appId int
return System

App() public method

public App ( int zoneId, int appId, DotNetNuke.Entities.Portals.PortalSettings ownerPortalSettings, bool allowSideEffects = true ) : System
zoneId int
appId int
ownerPortalSettings DotNetNuke.Entities.Portals.PortalSettings
allowSideEffects bool
return System