C# 클래스 Rock.Model.BlockService

The data access/service class for Rock.Model.Block entity type objects that extends the functionality of Rock.Data.Service
파일 보기 프로젝트 열기: NewSpring/Rock 1 사용 예제들

공개 메소드들

메소드 설명
GetByBlockTypeId ( int blockTypeId ) : IQueryable

Returns an enumerable collection of Rock.Model.Block">Blocks that implement a specific

GetByLayout ( int layoutId ) : IQueryable

Returns an enumerable collection of Rock.Model.Block">Blocks that are implemented as part of a

GetByLayoutAndZone ( int layoutId, string zone ) : IQueryable

Returns an enumerable collection of Blocks that are implemented in a specific zone on a Site Layout template.

GetByPage ( int pageId ) : IQueryable

Returns a collection of Blocks that are implemented on a specific page.

GetByPageAndZone ( int pageId, string zone ) : IQueryable

Returns a collection of Blocks that are implemented in a Zone on a specific page.

GetGuid ( int id ) : Guid?

Gets the Guid for the Block that has the specified Id

GetMaxOrder ( Block block ) : int

Returns the next available position for a Rock.Model.Block in a given Zone.

메소드 상세

GetByBlockTypeId() 공개 메소드

Returns an enumerable collection of Rock.Model.Block">Blocks that implement a specific
public GetByBlockTypeId ( int blockTypeId ) : IQueryable
blockTypeId int The Id of the to search for.
리턴 IQueryable

GetByLayout() 공개 메소드

Returns an enumerable collection of Rock.Model.Block">Blocks that are implemented as part of a
public GetByLayout ( int layoutId ) : IQueryable
layoutId int An representing the Id of the that the block belongs to.
리턴 IQueryable

GetByLayoutAndZone() 공개 메소드

Returns an enumerable collection of Blocks that are implemented in a specific zone on a Site Layout template.
public GetByLayoutAndZone ( int layoutId, string zone ) : IQueryable
layoutId int An representing the Id of the that the block belongs to.
zone string A representing the name of the Zone to search by.
리턴 IQueryable

GetByPage() 공개 메소드

Returns a collection of Blocks that are implemented on a specific page.
public GetByPage ( int pageId ) : IQueryable
pageId int An representing the Id of a that a may be implemented on.
리턴 IQueryable

GetByPageAndZone() 공개 메소드

Returns a collection of Blocks that are implemented in a Zone on a specific page.
public GetByPageAndZone ( int pageId, string zone ) : IQueryable
pageId int An that represents the Id of that a may be implemented on.
zone string A that represents the name of a page/layout zone that a may be implemented on.
리턴 IQueryable

GetGuid() 공개 메소드

Gets the Guid for the Block that has the specified Id
public GetGuid ( int id ) : Guid?
id int The identifier.
리턴 Guid?

GetMaxOrder() 공개 메소드

Returns the next available position for a Rock.Model.Block in a given Zone.
public GetMaxOrder ( Block block ) : int
block Block A entity object.
리턴 int