C# Class Sitecore.Extensions.ItemExtensions

Datei anzeigen Open project: hnielsen/Sitecore.Extensions

Public Methods

Method Description
ChildrenDerivedFrom ( this item, ID templateId ) : IEnumerable
DeleteAndPublish ( this item ) : void
GetAncestors ( this item, System.Boolean descending = true ) : IEnumerable
GetReferrersAsItems ( this item ) : IEnumerable
HasLanguage ( this item, System.Language language ) : bool
HasLanguage ( this item, string languageName ) : bool
IsDerivedFromTemplate ( this item, ID templateId ) : bool
IsInContextSite ( this item ) : System.Boolean
IsPublished ( this pItem ) : bool
IsStandardValues ( this item ) : bool
IsTemplate ( this item ) : bool
IsValidForPublish ( this item ) : System.Boolean
LanguageVersionCount ( this item, System.Language lang ) : int
Publish ( this item, bool deep ) : void
UnPublish ( this item ) : void

Method Details

ChildrenDerivedFrom() public static method

public static ChildrenDerivedFrom ( this item, ID templateId ) : IEnumerable
item this
templateId ID
return IEnumerable

DeleteAndPublish() public static method

public static DeleteAndPublish ( this item ) : void
item this
return void

GetAncestors() public static method

public static GetAncestors ( this item, System.Boolean descending = true ) : IEnumerable
item this
descending System.Boolean
return IEnumerable

GetReferrersAsItems() public static method

public static GetReferrersAsItems ( this item ) : IEnumerable
item this
return IEnumerable

HasLanguage() public static method

public static HasLanguage ( this item, System.Language language ) : bool
item this
language System.Language
return bool

HasLanguage() public static method

public static HasLanguage ( this item, string languageName ) : bool
item this
languageName string
return bool

IsDerivedFromTemplate() public static method

public static IsDerivedFromTemplate ( this item, ID templateId ) : bool
item this
templateId ID
return bool

IsInContextSite() public static method

public static IsInContextSite ( this item ) : System.Boolean
item this
return System.Boolean

IsPublished() public static method

public static IsPublished ( this pItem ) : bool
pItem this
return bool

IsStandardValues() public static method

public static IsStandardValues ( this item ) : bool
item this
return bool

IsTemplate() public static method

public static IsTemplate ( this item ) : bool
item this
return bool

IsValidForPublish() public static method

public static IsValidForPublish ( this item ) : System.Boolean
item this
return System.Boolean

LanguageVersionCount() public static method

public static LanguageVersionCount ( this item, System.Language lang ) : int
item this
lang System.Language
return int

Publish() public static method

public static Publish ( this item, bool deep ) : void
item this
deep bool
return void

UnPublish() public static method

public static UnPublish ( this item ) : void
item this
return void