C# Class Rock.Model.LayoutService

The data access/service class for the Rock.Model.Site entity. This inherits from the Service class
Mostrar archivo Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
GetBySiteId ( int siteId ) : IQueryable

Gets the Layout by site id.

GetGuid ( int id ) : Guid?

Gets the Guid for the Layout that has the specified Id

RegisterLayouts ( string physWebAppPath, SiteCache site ) : void

Registers any layouts in a particular site's theme folder that do not currently have any layouts registered in Rock.

Method Details

GetBySiteId() public method

Gets the Layout by site id.
public GetBySiteId ( int siteId ) : IQueryable
siteId int The site id.
return IQueryable

GetGuid() public method

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

RegisterLayouts() public static method

Registers any layouts in a particular site's theme folder that do not currently have any layouts registered in Rock.
public static RegisterLayouts ( string physWebAppPath, SiteCache site ) : void
physWebAppPath string A containing the physical path to Rock on the server.
site SiteCache The site.
return void