Class CatalogNodeRowExtensions
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Catalog.Dto
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public static class CatalogNodeRowExtensions
Methods
EndDate(CatalogNodeDto.CatalogNodeRow, String)
Get node end date in the specific language
.
Declaration
public static DateTime EndDate(this CatalogNodeDto.CatalogNodeRow catalogNodeRow, string language)
Parameters
Type | Name | Description |
---|---|---|
CatalogNodeDto.CatalogNodeRow | catalogNodeRow | The catalog node row. |
System.String | language | The language. |
Returns
Type | Description |
---|---|
System.DateTime |
IsAvailable(CatalogNodeDto.CatalogNodeRow)
Determines whether the specified catalog node row is available (is active, startdate and enddate are correct)
Declaration
public static bool IsAvailable(this CatalogNodeDto.CatalogNodeRow catalogNodeRow)
Parameters
Type | Name | Description |
---|---|---|
CatalogNodeDto.CatalogNodeRow | catalogNodeRow | The catalog node row. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsAvailable(CatalogNodeDto.CatalogNodeRow, String)
Determines whether the specified catalog node row is available (is published, startdate and enddate are correct) in the specific language
.
Declaration
public static bool IsAvailable(this CatalogNodeDto.CatalogNodeRow catalogNodeRow, string language)
Parameters
Type | Name | Description |
---|---|---|
CatalogNodeDto.CatalogNodeRow | catalogNodeRow | The catalog node row. |
System.String | language | The language. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsPublished(CatalogNodeDto.CatalogNodeRow, MetaObject)
Checks if the entry is published based on the rows's active status and the published field in the meta object.
Declaration
public static bool IsPublished(this CatalogNodeDto.CatalogNodeRow row, MetaObject metaObject)
Parameters
Type | Name | Description |
---|---|---|
CatalogNodeDto.CatalogNodeRow | row | The node row. |
MetaObject | metaObject | The meta object. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsPublished(CatalogNodeDto.CatalogNodeRow, String)
Checks if the node is published in the specific language
.
Declaration
public static bool IsPublished(this CatalogNodeDto.CatalogNodeRow row, string language)
Parameters
Type | Name | Description |
---|---|---|
CatalogNodeDto.CatalogNodeRow | row | The node row. |
System.String | language | The language to check if the node is published. |
Returns
Type | Description |
---|---|
System.Boolean |
|
StartDate(CatalogNodeDto.CatalogNodeRow, String)
Get node start date in the specific language
.
Declaration
public static DateTime StartDate(this CatalogNodeDto.CatalogNodeRow catalogNodeRow, string language)
Parameters
Type | Name | Description |
---|---|---|
CatalogNodeDto.CatalogNodeRow | catalogNodeRow | The catalog node row. |
System.String | language | The language. |
Returns
Type | Description |
---|---|
System.DateTime |