Class TabVersionController
Inheritance
Implements
Inherited Members
Namespace: DotNetNuke.Entities.Tabs.TabVersions
Assembly: DotNetNuke.dll
Syntax
public class TabVersionController : ServiceLocator<ITabVersionController, TabVersionController>, ITabVersionController
Methods
| Improve this Doc View SourceCreateTabVersion(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. |
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. |
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. |
GetFactory()
Gets the service locator factory.
Declaration
protected override Func<ITabVersionController> GetFactory()
Returns
Type | Description |
---|---|
Func<ITabVersionController> | A factory function. |
Overrides
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. |
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. |
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 |
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 |
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. |