C# Class Rock.Model.ContentChannelService

Data access/service class for Rock.Model.ContentChannel objects.
Mostrar archivo Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
Delete ( ContentChannel item ) : bool

Deletes the specified item.

GetAllAssociatedDescendents ( System.Guid parentContentChannelGuid ) : IEnumerable

Returns an enumerable collection of ContentChannel that are descendants of a specified content channel type. WARNING: This will fail if their is a circular reference in the ContentChannelAssociation table.

GetAllAssociatedDescendents ( int parentContentChannelId ) : IEnumerable

Returns an enumerable collection of ContentChannel that are descendants of a specified content channel type. WARNING: This will fail (max recursion) if there is a circular reference in the ContentChannelAssociation table.

GetAllAssociatedDescendentsPath ( int parentContentChannelId ) : IEnumerable

Returns an enumerable collection of ContentChannelPath objects that are associated descendants of a specified content channel type. WARNING: This will fail if there is a circular reference in the ContentChannelAssociation table.

GetChildContentChannels ( System.Guid contentChannelGuid ) : IQueryable

Gets the child content channel types.

GetChildContentChannels ( int contentChannelId ) : IQueryable

Gets the child content channel types.

GetParentContentChannels ( int contentChannelId ) : IQueryable

Gets the parent content channel types.

Method Details

Delete() public method

Deletes the specified item.
public Delete ( ContentChannel item ) : bool
item ContentChannel The item.
return bool

GetAllAssociatedDescendents() public method

Returns an enumerable collection of ContentChannel that are descendants of a specified content channel type. WARNING: This will fail if their is a circular reference in the ContentChannelAssociation table.
public GetAllAssociatedDescendents ( System.Guid parentContentChannelGuid ) : IEnumerable
parentContentChannelGuid System.Guid The parent content channel type unique identifier.
return IEnumerable

GetAllAssociatedDescendents() public method

Returns an enumerable collection of ContentChannel that are descendants of a specified content channel type. WARNING: This will fail (max recursion) if there is a circular reference in the ContentChannelAssociation table.
public GetAllAssociatedDescendents ( int parentContentChannelId ) : IEnumerable
parentContentChannelId int The parent content channel type identifier.
return IEnumerable

GetAllAssociatedDescendentsPath() public method

Returns an enumerable collection of ContentChannelPath objects that are associated descendants of a specified content channel type. WARNING: This will fail if there is a circular reference in the ContentChannelAssociation table.
public GetAllAssociatedDescendentsPath ( int parentContentChannelId ) : IEnumerable
parentContentChannelId int The parent content channel type identifier.
return IEnumerable

GetChildContentChannels() public method

Gets the child content channel types.
public GetChildContentChannels ( System.Guid contentChannelGuid ) : IQueryable
contentChannelGuid System.Guid The content channel type unique identifier.
return IQueryable

GetChildContentChannels() public method

Gets the child content channel types.
public GetChildContentChannels ( int contentChannelId ) : IQueryable
contentChannelId int The content channel type identifier.
return IQueryable

GetParentContentChannels() public method

Gets the parent content channel types.
public GetParentContentChannels ( int contentChannelId ) : IQueryable
contentChannelId int The content channel type identifier.
return IQueryable