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

Class TabVersionController

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

Methods

| Improve this Doc View Source

CreateTabVersion(Int32, Int32, Boolean)

Creates a new version for a existing Tab.

Declaration
public TabVersion CreateTabVersion(int tabId, int createdByUserID, bool isPublished = false)
Parameters
Type Name Description
System.Int32 tabId

The Tab Id to be queried.

System.Int32 createdByUserID
System.Boolean isPublished

If true, the version is automatically published.

Returns
Type Description
TabVersion

TabVersion filled with the new version data.

| Improve this Doc View Source

DeleteTabVersion(Int32, Int32)

Deletes a Tab Version.

Declaration
public void DeleteTabVersion(int tabId, int tabVersionId)
Parameters
Type Name Description
System.Int32 tabId

The Tab Id to be queried.

System.Int32 tabVersionId

The TabVersion Id to be deleted.

| Improve this Doc View Source

DeleteTabVersionDetailByModule(Int32)

Deletes a Tab Version details for a module.

Declaration
public void DeleteTabVersionDetailByModule(int moduleId)
Parameters
Type Name Description
System.Int32 moduleId

The Module Id to be queried.

| Improve this Doc View Source

GetFactory()

Gets the service locator factory.

Declaration
protected override Func<ITabVersionController> GetFactory()
Returns
Type Description
Func<ITabVersionController>

A factory function.

Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Entities.Tabs.TabVersions.ITabVersionController, DotNetNuke.Entities.Tabs.TabVersions.TabVersionController>.GetFactory()
| Improve this Doc View Source

GetTabVersion(Int32, Int32, Boolean)

Gets a Tab Version object of an existing Tab.

Declaration
public TabVersion GetTabVersion(int tabVersionId, int tabId, bool ignoreCache = false)
Parameters
Type Name Description
System.Int32 tabVersionId

The Tab Version Id to be get.

System.Int32 tabId

The Tab Id to be queried.

System.Boolean ignoreCache

If true, the method will not use the Caching Storage.

Returns
Type Description
TabVersion

TabVersion filled with the specific version data.

| Improve this Doc View Source

GetTabVersions(Int32, Boolean)

Gets all Tab Versions of an existing Tab.

Declaration
public IEnumerable<TabVersion> GetTabVersions(int tabId, bool ignoreCache = false)
Parameters
Type Name Description
System.Int32 tabId

Tha Tab ID to be quiered.

System.Boolean ignoreCache

If true, the method will not use the Caching Storage.

Returns
Type Description
IEnumerable<TabVersion>

List of TabVersion objects.

| Improve this Doc View Source

SaveTabVersion(TabVersion, Int32, Int32)

Saves a Tab Version object. Adds or updates an existing one.

Declaration
public void SaveTabVersion(TabVersion tabVersion, int createdByUserID, int modifiedByUserID)
Parameters
Type Name Description
TabVersion tabVersion

TabVersion object to be saved.

System.Int32 createdByUserID
System.Int32 modifiedByUserID
| Improve this Doc View Source

SaveTabVersion(TabVersion, Int32)

Saves a Tab Version object. Adds or updates an existing one.

Declaration
public void SaveTabVersion(TabVersion tabVersion, int createdByUserID)
Parameters
Type Name Description
TabVersion tabVersion

TabVersion object to be saved.

System.Int32 createdByUserID
| Improve this Doc View Source

SaveTabVersion(TabVersion)

Saves a Tab Version object. Adds or updates an existing one.

Declaration
public void SaveTabVersion(TabVersion tabVersion)
Parameters
Type Name Description
TabVersion tabVersion

TabVersion object to be saved.

Implements

ITabVersionController

Extension Methods

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