PHP Class BlocksSiteTreeExtension

Author: Shea Dawson ([email protected])
Inheritance: extends SiteTreeExtension
Afficher le fichier Open project: sheadawson/silverstripe-blocks

Méthodes publiques

Свойство Type Description
$blockManager
$many_many_extraFields

Méthodes publiques

Méthode Description
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.

Method Details

BlockArea() public méthode

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 méthode

public HasBlockArea ( $area )

areasPreviewButton() public méthode

Get's html for a block area preview button.
public areasPreviewButton ( ) : string
Résultat string

getAppliedSets() public méthode

Get Any BlockSets that apply to this page.
public getAppliedSets ( ) : ArrayList
Résultat ArrayList

getBlockList() public méthode

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
Résultat ArrayList

getBlocksFromAppliedBlockSets() public méthode

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

showBlocksFields() public méthode

Check if the Blocks CMSFields should be displayed for this Page
public showBlocksFields ( ) : boolean
Résultat boolean

updateCMSFields() public méthode

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

Property Details

$blockManager public_oe property

public $blockManager

$many_many_extraFields public_oe static_oe property

public static $many_many_extraFields