Interface ITabPublishingController
Namespace: DotNetNuke.Entities.Tabs
Assembly: DotNetNuke.dll
Syntax
public interface ITabPublishingController
Methods
| Improve this Doc View SourceCanPublishingBePerformed(Int32, Int32)
Check if Publish/Unpublish page actions can be performed.
Declaration
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. |
IsTabPublished(Int32, Int32)
Check if a page is published or not.
Declaration
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
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. |