Class TabPublishingController
Inheritance
System.Object
TabPublishingController
Implements
Inherited Members
Namespace: DotNetNuke.Entities.Tabs
Assembly: DotNetNuke.dll
Syntax
public class TabPublishingController : ServiceLocator<ITabPublishingController, TabPublishingController>, ITabPublishingController
Methods
| Improve this Doc View SourceCanPublishingBePerformed(Int32, Int32)
Check if Publish/Unpublish page actions can be performed.
Declaration
public bool CanPublishingBePerformed(int tabID, int portalID)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tabID | The tab ID. |
System.Int32 | portalID | The portal ID where the tab is. |
Returns
Type | Description |
---|---|
System.Boolean | true if the page can be published/unpublished, otherwise false. |
GetFactory()
Gets the service locator factory.
Declaration
protected override Func<ITabPublishingController> GetFactory()
Returns
Type | Description |
---|---|
Func<ITabPublishingController> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Entities.Tabs.ITabPublishingController, DotNetNuke.Entities.Tabs.TabPublishingController>.GetFactory()
|
Improve this Doc
View Source
IsTabPublished(Int32, Int32)
Check if a page is published or not.
Declaration
public bool IsTabPublished(int tabID, int portalID)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tabID | Tha tab Id. |
System.Int32 | portalID | The portal ID where the tab is. |
Returns
Type | Description |
---|---|
System.Boolean | true if the page is published, otherwise false. |
SetTabPublishing(Int32, Int32, Boolean)
Set a page as published or unpublished.
Declaration
public void SetTabPublishing(int tabID, int portalID, bool publish)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tabID | The tab ID. |
System.Int32 | portalID | The portal ID where the tab is. |
System.Boolean | publish | A boolean value where True means the page is going to be published and otherwise unpublished. |