PHP 클래스 MetaModels\BackendIntegration\BackendModuleBuilder

파일 보기 프로젝트 열기: metamodels/core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$backendMenu array The contents of the backend menu to be set.
$container MetaModels\IMetaModelsServiceContainer The service container.
$languageStrings array The language strings for the modules.
$viewCombinations MetaModels\BackendIntegration\ViewCombinations The view combinations.

공개 메소드들

메소드 설명
__construct ( MetaModels\IMetaModelsServiceContainer $container, MetaModels\BackendIntegration\ViewCombinations $viewCombinations ) Create a new instance.
export ( ) : void Set the local data into the GLOBALS config.

보호된 메소드들

메소드 설명
buildIcon ( string $icon ) : string Build a 16x16 sized representation of the passed icon if it exists or fallback to the default icon otherwise.
calculateCacheKey ( ) : string Calculate the cache key to use.
getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface Retrieve the event dispatcher.
loadFromCache ( ) : boolean Try to load the combinations from cache.
saveToCache ( ) : boolean Try to load the combinations from cache.

비공개 메소드들

메소드 설명
addChildTablesToBackendModules ( string[] $parentTables ) : void Inject all meta models into their corresponding parent tables.
addModuleToBackendMenu ( MetaModels\BackendIntegration\InputScreen\IInputScreen $inputScreen ) : void Handle stand alone integration in the backend.
getTableNamesFromInputScreens ( string[] $metaModelNames ) : string[] Retrieve the table names from a list of input screens.
resolve ( ) : void Inject MetaModels in the backend menu.

메소드 상세

__construct() 공개 메소드

Create a new instance.
public __construct ( MetaModels\IMetaModelsServiceContainer $container, MetaModels\BackendIntegration\ViewCombinations $viewCombinations )
$container MetaModels\IMetaModelsServiceContainer The service container.
$viewCombinations MetaModels\BackendIntegration\ViewCombinations The view combinations.

buildIcon() 보호된 메소드

Build a 16x16 sized representation of the passed icon if it exists or fallback to the default icon otherwise.
protected buildIcon ( string $icon ) : string
$icon string The path to the icon (relative to TL_ROOT).
리턴 string The path to the generated icon.

calculateCacheKey() 보호된 메소드

Calculate the cache key to use.
protected calculateCacheKey ( ) : string
리턴 string

export() 공개 메소드

Set the local data into the GLOBALS config.
public export ( ) : void
리턴 void

getEventDispatcher() 보호된 메소드

Retrieve the event dispatcher.
protected getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
리턴 Symfony\Component\EventDispatcher\EventDispatcherInterface

loadFromCache() 보호된 메소드

Try to load the combinations from cache.
protected loadFromCache ( ) : boolean
리턴 boolean

saveToCache() 보호된 메소드

Try to load the combinations from cache.
protected saveToCache ( ) : boolean
리턴 boolean

프로퍼티 상세

$backendMenu 보호되어 있는 프로퍼티

The contents of the backend menu to be set.
protected array $backendMenu
리턴 array

$container 보호되어 있는 프로퍼티

The service container.
protected IMetaModelsServiceContainer,MetaModels $container
리턴 MetaModels\IMetaModelsServiceContainer

$languageStrings 보호되어 있는 프로퍼티

The language strings for the modules.
protected array $languageStrings
리턴 array

$viewCombinations 보호되어 있는 프로퍼티

The view combinations.
protected ViewCombinations,MetaModels\BackendIntegration $viewCombinations
리턴 MetaModels\BackendIntegration\ViewCombinations