PHP Класс BlocksSiteTreeExtension

Автор: Shea Dawson ([email protected])
Наследование: extends SiteTreeExtension
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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