Geta.EPi.Extensions : API Documentation

Type ContentReferenceExtensions

Namespace Geta.EPi.Extensions

Public static methods

IEnumerable<PageData> GetChildren(this ContentReference contentReference)

Returns enumeration of child contents of PageData type for provided content reference.
Parameters
ContentReference contentReference
Content reference for which child contents to get.
Returns
IEnumerable<PageData>
Enumeration of PageData child content.

IEnumerable<T> GetChildren<T>(this ContentReference contentReference)

Returns enumeration of child contents of concrete type for provided content reference.
Parameters
ContentReference contentReference
Content reference for which child contents to get.
Returns
IEnumerable<T>
Enumeration of child content.

string GetFriendlyUrl(this ContentReference contentReference, bool includeHost)

Returns friendly URL for provided content reference.
Parameters
ContentReference contentReference
Content reference for which to create friendly url.
bool includeHost
Mark if include host name in the url.
Returns
string
String representation of URL for provided content reference.

PageData GetPage(this ContentReference contentReference)

Returns page of PageData type for provided content reference.
Parameters
ContentReference contentReference
Content reference for which to get page.
Returns
PageData
Page of PageData type that match content reference.

T GetPage<T>(this ContentReference contentReference)

Returns page of concrete type for provided content reference.
Parameters
ContentReference contentReference
Content reference for which to get page.
Returns
T
Page of that match content reference.

bool IsNullOrEmpty(this ContentReference contentReference)

Indicates whether the specified content reference is null or an EmptyReference.
Parameters
ContentReference contentReference
Content reference to test.
Returns
bool
true if content reference is null or EmptyReference else false