PHP 클래스 BlocksSiteTreeExtension

저자: Shea Dawson ([email protected])
상속: extends SiteTreeExtension
파일 보기 프로젝트 열기: sheadawson/silverstripe-blocks

공개 프로퍼티들

프로퍼티 타입 설명
$blockManager
$many_many_extraFields

공개 메소드들

메소드 설명
BlockArea ( string $area, integer $limit = null ) Called from templates to get rendered blocks for the given area.
HasBlockArea ( $area )
areasPreviewButton ( ) : string Get's html for a block area preview button.
areasPreviewLink ( ) : string Get's the link for a block area preview button.
getAppliedSets ( ) : ArrayList Get Any BlockSets that apply to this page.
getBlockList ( string | null $area = null, boolean $includeDisabled = false ) : ArrayList Get a merged list of all blocks on this page and ones inherited from BlockSets.
getBlocksFromAppliedBlockSets ( $area = null, $includeDisabled = false ) : ArrayList Get all Blocks from BlockSets that apply to this page.
showBlocksFields ( ) : boolean Check if the Blocks CMSFields should be displayed for this Page
updateCMSFields ( FieldList $fields ) Block manager for Pages.

메소드 상세

BlockArea() 공개 메소드

Called from templates to get rendered blocks for the given area.
public BlockArea ( string $area, integer $limit = null )
$area string
$limit integer Limit the items to this number, or null for no limit

HasBlockArea() 공개 메소드

public HasBlockArea ( $area )

areasPreviewButton() 공개 메소드

Get's html for a block area preview button.
public areasPreviewButton ( ) : string
리턴 string

getAppliedSets() 공개 메소드

Get Any BlockSets that apply to this page.
public getAppliedSets ( ) : ArrayList
리턴 ArrayList

getBlockList() 공개 메소드

Get a merged list of all blocks on this page and ones inherited from BlockSets.
public getBlockList ( string | null $area = null, boolean $includeDisabled = false ) : ArrayList
$area string | null filter by block area
$includeDisabled boolean Include blocks that have been explicitly excluded from this page i.e. blocks from block sets added to the "disable inherited blocks" list
리턴 ArrayList

getBlocksFromAppliedBlockSets() 공개 메소드

Get all Blocks from BlockSets that apply to this page.
public getBlocksFromAppliedBlockSets ( $area = null, $includeDisabled = false ) : ArrayList
리턴 ArrayList

showBlocksFields() 공개 메소드

Check if the Blocks CMSFields should be displayed for this Page
public showBlocksFields ( ) : boolean
리턴 boolean

updateCMSFields() 공개 메소드

Block manager for Pages.
public updateCMSFields ( FieldList $fields )
$fields FieldList

프로퍼티 상세

$blockManager 공개적으로 프로퍼티

public $blockManager

$many_many_extraFields 공개적으로 정적으로 프로퍼티

public static $many_many_extraFields