• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class TabPublishingController

Inheritance
System.Object
ServiceLocator<ITabPublishingController, TabPublishingController>
TabPublishingController
Implements
ITabPublishingController
Inherited Members
ServiceLocator<ITabPublishingController, TabPublishingController>.Instance
ServiceLocator<ITabPublishingController, TabPublishingController>.Factory
ServiceLocator<ITabPublishingController, TabPublishingController>.SetTestableInstance(ITabPublishingController)
ServiceLocator<ITabPublishingController, TabPublishingController>.ClearInstance()
ServiceLocator<ITabPublishingController, TabPublishingController>.GetFactory()
Namespace: DotNetNuke.Entities.Tabs
Assembly: DotNetNuke.dll
Syntax
public class TabPublishingController : ServiceLocator<ITabPublishingController, TabPublishingController>, ITabPublishingController

Methods

| Improve this Doc View Source

CanPublishingBePerformed(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

ITabPublishingController

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS