PHP Class BlockManager

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

Méthodes publiques

Méthode Description
__construct ( )
getAreasForPageType ( string $class ) : array Gets an array of all areas defined for the current theme that are compatible with pages of type $class.
getAreasForTheme ( string $theme = null, boolean $keyAsValue = true ) : array Gets an array of all areas defined for the current theme.
getBlackListedPageTypes ( ) * getBlackListedPageTypes optionally configured by the developer Includes blacklisted page types defined in the old exclude_from_page_types array
getBlockClasses ( )
getExcludeFromPageTypes ( ) * Exclusion of blocks from page types defined in yaml
getPrefixDefaultCSSClasses ( ) * Prefix for the default CSSClasses
getUseBlockSets ( ) * Usage of BlockSets configurable from yaml
getUseExtraCSSClasses ( ) * Usage of extra css classes configurable from yaml
getWhiteListedPageTypes ( ) * getWhiteListedPageTypes optionally configured by the developer

Private Methods

Méthode Description
getTheme ( ) * Get the current/active theme or 'default' to support theme-less sites
getThemeConfig ( ) * Get the block config for the current theme

Method Details

__construct() public méthode

public __construct ( )

getAreasForPageType() public méthode

Gets an array of all areas defined for the current theme that are compatible with pages of type $class.
public getAreasForPageType ( string $class ) : array
$class string
Résultat array $areas

getAreasForTheme() public méthode

Gets an array of all areas defined for the current theme.
public getAreasForTheme ( string $theme = null, boolean $keyAsValue = true ) : array
$theme string
$keyAsValue boolean
Résultat array $areas

getBlackListedPageTypes() public méthode

* getBlackListedPageTypes optionally configured by the developer Includes blacklisted page types defined in the old exclude_from_page_types array

getBlockClasses() public méthode

public getBlockClasses ( )

getExcludeFromPageTypes() public méthode

* Exclusion of blocks from page types defined in yaml

getPrefixDefaultCSSClasses() public méthode

* Prefix for the default CSSClasses

getUseBlockSets() public méthode

* Usage of BlockSets configurable from yaml
public getUseBlockSets ( )

getUseExtraCSSClasses() public méthode

* Usage of extra css classes configurable from yaml

getWhiteListedPageTypes() public méthode

* getWhiteListedPageTypes optionally configured by the developer