PHP 클래스 BlockManager

저자: Shea Dawson ([email protected])
상속: extends Object
파일 보기 프로젝트 열기: sheadawson/silverstripe-blocks 1 사용 예제들

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
getTheme ( ) * Get the current/active theme or 'default' to support theme-less sites
getThemeConfig ( ) * Get the block config for the current theme

메소드 상세

__construct() 공개 메소드

public __construct ( )

getAreasForPageType() 공개 메소드

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
리턴 array $areas

getAreasForTheme() 공개 메소드

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

getBlackListedPageTypes() 공개 메소드

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

getBlockClasses() 공개 메소드

public getBlockClasses ( )

getExcludeFromPageTypes() 공개 메소드

* Exclusion of blocks from page types defined in yaml

getPrefixDefaultCSSClasses() 공개 메소드

* Prefix for the default CSSClasses

getUseBlockSets() 공개 메소드

* Usage of BlockSets configurable from yaml
public getUseBlockSets ( )

getUseExtraCSSClasses() 공개 메소드

* Usage of extra css classes configurable from yaml

getWhiteListedPageTypes() 공개 메소드

* getWhiteListedPageTypes optionally configured by the developer