C# Class Rock.Model.ContentChannelService

Data access/service class for Rock.Model.ContentChannel objects.
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Deletes the specified item.
public Delete ( ContentChannel item ) : bool
item ContentChannel The item.
Résultat bool

GetAllAssociatedDescendents() public méthode

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.
Résultat IEnumerable

GetAllAssociatedDescendents() public méthode

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.
Résultat IEnumerable

GetAllAssociatedDescendentsPath() public méthode

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.
Résultat IEnumerable

GetChildContentChannels() public méthode

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

GetChildContentChannels() public méthode

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

GetParentContentChannels() public méthode

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