C# Class Rock.Model.BlockTypeService

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

Public Methods

Method Description
GetByGuid ( System.Guid guid ) : BlockType

Gets a Rock.Model.BlockType by its Guid.

GetByName ( string name ) : IQueryable

Gets a collection of Rock.Model.BlockType entities by Name

GetByPath ( string path ) : IQueryable

Gets a collection of Rock.Model.BlockType entities by path.

GetGuid ( int id ) : Guid?

Gets the Guid for the BlockType that has the specified Id

RegisterBlockTypes ( string physWebAppPath, System page, bool refreshAll = false ) : void

Registers any block types that are not currently registered in Rock.

Private Methods

Method Description
FindAllBlocksInPath ( string physWebAppPath, string>.Dictionary list, string folder ) : void

Finds all the BlockTypes within a given path.

Method Details

GetByGuid() public method

Gets a Rock.Model.BlockType by its Guid.
public GetByGuid ( System.Guid guid ) : BlockType
guid System.Guid identifier filter to search by.
return BlockType

GetByName() public method

Gets a collection of Rock.Model.BlockType entities by Name
public GetByName ( string name ) : IQueryable
name string A containing the Name filter to search for.
return IQueryable

GetByPath() public method

Gets a collection of Rock.Model.BlockType entities by path.
public GetByPath ( string path ) : IQueryable
path string A containing the path to search for.
return IQueryable

GetGuid() public method

Gets the Guid for the BlockType that has the specified Id
public GetGuid ( int id ) : Guid?
id int The identifier.
return Guid?

RegisterBlockTypes() public static method

Registers any block types that are not currently registered in Rock.
public static RegisterBlockTypes ( string physWebAppPath, System page, bool refreshAll = false ) : void
physWebAppPath string A containing the physical path to Rock on the server.
page System The .
refreshAll bool if set to true will refresh name, category, and description for all block types (not just the new ones)
return void