C# Class Sitecore.ItemAdapter.Extensions.ItemExtensions

Show file Open project: Sitecore/sitecore-itemadapter

Public Methods

Method Description
GetCheckBoxFieldValue ( this item, ID fieldId ) : bool
GetDateTimeFieldValue ( this item, ID fieldId ) : Nullable
GetDecimalFieldValue ( this item, ID fieldId ) : Decimal
GetDropLinkItem ( this item, ID fieldId ) : System.Item
GetField ( this item, ID fieldId ) : Field
GetField ( this item, string fieldName ) : Field
GetFieldId ( this item, string fieldName ) : ID
GetFieldName ( this item, ID fieldId ) : string
GetFileUrl ( this item, ID fieldId ) : string
GetGeneralLinkFieldValue ( this item, ID fieldId ) : IGeneralLink
GetImageUrl ( this item, ID fieldId ) : string
GetIntegerFieldValue ( this item, ID fieldId ) : int
GetInternalLinkId ( this item, ID fieldId ) : string
GetInternalLinkItem ( this item, ID fieldId ) : System.Item
GetLink ( this item ) : string
GetLink ( this item, Sitecore options ) : string
GetListItems ( this item, ID fieldId ) : List
GetNameLookupList ( this item, ID fieldId ) : Item>.SortedList
GetNameValueList ( this item, ID fieldId ) : string>.SortedList
GetRichTextContent ( this item, ID fieldId ) : string
GetRichTextRenderFieldPipeline ( this item, ID fieldId ) : string
GetTextContent ( this item, ID fieldId ) : string
GetTreelistMediaUrls ( this item, ID fieldId ) : List
MatchTemplate ( this ti, string TemplateName, bool matchBaseTemplate ) : bool
MatchTemplateByGuid ( this ti, string TemplateGuid, bool matchBaseTemplate ) : bool

Method Details

GetCheckBoxFieldValue() public static method

public static GetCheckBoxFieldValue ( this item, ID fieldId ) : bool
item this
fieldId ID
return bool

GetDateTimeFieldValue() public static method

public static GetDateTimeFieldValue ( this item, ID fieldId ) : Nullable
item this
fieldId ID
return Nullable

GetDecimalFieldValue() public static method

public static GetDecimalFieldValue ( this item, ID fieldId ) : Decimal
item this
fieldId ID
return Decimal

GetDropLinkItem() public static method

public static GetDropLinkItem ( this item, ID fieldId ) : System.Item
item this
fieldId ID
return System.Item

GetField() public static method

public static GetField ( this item, ID fieldId ) : Field
item this
fieldId ID
return Field

GetField() public static method

public static GetField ( this item, string fieldName ) : Field
item this
fieldName string
return Field

GetFieldId() public static method

public static GetFieldId ( this item, string fieldName ) : ID
item this
fieldName string
return ID

GetFieldName() public static method

public static GetFieldName ( this item, ID fieldId ) : string
item this
fieldId ID
return string

GetFileUrl() public static method

public static GetFileUrl ( this item, ID fieldId ) : string
item this
fieldId ID
return string

GetGeneralLinkFieldValue() public static method

public static GetGeneralLinkFieldValue ( this item, ID fieldId ) : IGeneralLink
item this
fieldId ID
return IGeneralLink

GetImageUrl() public static method

public static GetImageUrl ( this item, ID fieldId ) : string
item this
fieldId ID
return string

GetIntegerFieldValue() public static method

public static GetIntegerFieldValue ( this item, ID fieldId ) : int
item this
fieldId ID
return int

GetInternalLinkId() public static method

public static GetInternalLinkId ( this item, ID fieldId ) : string
item this
fieldId ID
return string

GetInternalLinkItem() public static method

public static GetInternalLinkItem ( this item, ID fieldId ) : System.Item
item this
fieldId ID
return System.Item

GetLink() public static method

public static GetLink ( this item ) : string
item this
return string

GetLink() public static method

public static GetLink ( this item, Sitecore options ) : string
item this
options Sitecore
return string

GetListItems() public static method

public static GetListItems ( this item, ID fieldId ) : List
item this
fieldId ID
return List

GetNameLookupList() public static method

public static GetNameLookupList ( this item, ID fieldId ) : Item>.SortedList
item this
fieldId ID
return Item>.SortedList

GetNameValueList() public static method

public static GetNameValueList ( this item, ID fieldId ) : string>.SortedList
item this
fieldId ID
return string>.SortedList

GetRichTextContent() public static method

public static GetRichTextContent ( this item, ID fieldId ) : string
item this
fieldId ID
return string

GetRichTextRenderFieldPipeline() public static method

public static GetRichTextRenderFieldPipeline ( this item, ID fieldId ) : string
item this
fieldId ID
return string

GetTextContent() public static method

public static GetTextContent ( this item, ID fieldId ) : string
item this
fieldId ID
return string

GetTreelistMediaUrls() public static method

public static GetTreelistMediaUrls ( this item, ID fieldId ) : List
item this
fieldId ID
return List

MatchTemplate() public static method

public static MatchTemplate ( this ti, string TemplateName, bool matchBaseTemplate ) : bool
ti this
TemplateName string
matchBaseTemplate bool
return bool

MatchTemplateByGuid() public static method

public static MatchTemplateByGuid ( this ti, string TemplateGuid, bool matchBaseTemplate ) : bool
ti this
TemplateGuid string
matchBaseTemplate bool
return bool