PHP Класс FluidTYPO3\Fluidcontent\Service\ConfigurationService

Provides methods to read various configuration related to Fluid Content Elements.
Автор: Claus Due
Наследование: extends FluidTYPO3\Flux\Service\FluxService, implements TYPO3\CMS\Core\SingletonInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$defaultIcon string
$extConf array
$manager TYPO3\CMS\Core\Cache\CacheManager
$pageRepository TYPO3\CMS\Frontend\Page\PageRepository
$pageUidBackup integer Storage for the current page UID to restore after this Service abuses ConfigurationManager to override the page UID used when resolving configurations for all TypoScript templates defined in the site.
$recordService FluidTYPO3\Flux\Service\WorkspacesAwareRecordService

Открытые методы

Метод Описание
__construct ( ) Constructor
getContentConfiguration ( string $extensionName = NULL ) : array Get definitions of paths for FCEs defined in TypoScript
getContentElementFormInstances ( ) : Form[][]
getContentTypeSelectorItems ( ) : array
getDefaultIcon ( ) : string
getPageTsConfig ( ) : string
injectCacheManager ( TYPO3\CMS\Core\Cache\CacheManager $manager ) : void
injectPageRepository ( TYPO3\CMS\Frontend\Page\PageRepository $pageRepository ) : void
injectRecordService ( FluidTYPO3\Flux\Service\WorkspacesAwareRecordService $recordService ) : void
writeCachedConfigurationIfMissing ( ) : void

Защищенные методы

Метод Описание
backupPageUidForConfigurationManager ( ) : void
buildAllWizardTabGroups ( array $allTemplatePaths ) : array Scans all folders in $allTemplatePaths for template files, reads information about each file and collects the groups of files into groups of pageTSconfig setup.
buildAllWizardTabsPageTsConfig ( array $wizardTabs ) : string Builds a big piece of pageTSconfig setup, defining every detected content element's wizard tabs and items.
buildWizardTabItem ( string $tabId, string $id, Form $form, string $templateFileIdentity ) : string Builds a single Wizard item (one FCE) based on the tab id, element id, configuration array and special template identity (groupName:Relative/Path/File.html)
getAllRootTypoScriptTemplates ( ) : array
getTypoScriptTemplatesInRootline ( ) : array
isBackendMode ( ) : boolean
overrideCurrentPageUidForConfigurationManager ( integer $newPageUid ) : void
renderPageTypoScriptForPageUid ( $pageUid ) : string
restorePageUidForConfigurationManager ( ) : void
sanitizeString ( string $string ) : string
sendDisabledContentWarning ( string $templatePathAndFilename ) : void

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

backupPageUidForConfigurationManager() защищенный Метод

protected backupPageUidForConfigurationManager ( ) : void
Результат void

buildAllWizardTabGroups() защищенный Метод

Scans all folders in $allTemplatePaths for template files, reads information about each file and collects the groups of files into groups of pageTSconfig setup.
protected buildAllWizardTabGroups ( array $allTemplatePaths ) : array
$allTemplatePaths array
Результат array

buildAllWizardTabsPageTsConfig() защищенный Метод

Builds a big piece of pageTSconfig setup, defining every detected content element's wizard tabs and items.
protected buildAllWizardTabsPageTsConfig ( array $wizardTabs ) : string
$wizardTabs array
Результат string

buildWizardTabItem() защищенный Метод

Builds a single Wizard item (one FCE) based on the tab id, element id, configuration array and special template identity (groupName:Relative/Path/File.html)
protected buildWizardTabItem ( string $tabId, string $id, Form $form, string $templateFileIdentity ) : string
$tabId string
$id string
$form FluidTYPO3\Flux\Form
$templateFileIdentity string
Результат string

getAllRootTypoScriptTemplates() защищенный Метод

protected getAllRootTypoScriptTemplates ( ) : array
Результат array

getContentConfiguration() публичный Метод

Get definitions of paths for FCEs defined in TypoScript
public getContentConfiguration ( string $extensionName = NULL ) : array
$extensionName string
Результат array

getContentElementFormInstances() публичный Метод

public getContentElementFormInstances ( ) : Form[][]
Результат FluidTYPO3\Flux\Form[][]

getContentTypeSelectorItems() публичный Метод

public getContentTypeSelectorItems ( ) : array
Результат array

getDefaultIcon() публичный Метод

public getDefaultIcon ( ) : string
Результат string

getPageTsConfig() публичный Метод

public getPageTsConfig ( ) : string
Результат string

getTypoScriptTemplatesInRootline() защищенный Метод

protected getTypoScriptTemplatesInRootline ( ) : array
Результат array

injectCacheManager() публичный Метод

public injectCacheManager ( TYPO3\CMS\Core\Cache\CacheManager $manager ) : void
$manager TYPO3\CMS\Core\Cache\CacheManager
Результат void

injectPageRepository() публичный Метод

public injectPageRepository ( TYPO3\CMS\Frontend\Page\PageRepository $pageRepository ) : void
$pageRepository TYPO3\CMS\Frontend\Page\PageRepository
Результат void

injectRecordService() публичный Метод

public injectRecordService ( FluidTYPO3\Flux\Service\WorkspacesAwareRecordService $recordService ) : void
$recordService FluidTYPO3\Flux\Service\WorkspacesAwareRecordService
Результат void

isBackendMode() защищенный Метод

protected isBackendMode ( ) : boolean
Результат boolean

overrideCurrentPageUidForConfigurationManager() защищенный Метод

protected overrideCurrentPageUidForConfigurationManager ( integer $newPageUid ) : void
$newPageUid integer
Результат void

renderPageTypoScriptForPageUid() защищенный Метод

protected renderPageTypoScriptForPageUid ( $pageUid ) : string
$pageUid
Результат string

restorePageUidForConfigurationManager() защищенный Метод

protected restorePageUidForConfigurationManager ( ) : void
Результат void

sanitizeString() защищенный Метод

protected sanitizeString ( string $string ) : string
$string string
Результат string

sendDisabledContentWarning() защищенный Метод

protected sendDisabledContentWarning ( string $templatePathAndFilename ) : void
$templatePathAndFilename string
Результат void

writeCachedConfigurationIfMissing() публичный Метод

public writeCachedConfigurationIfMissing ( ) : void
Результат void

Описание свойств

$defaultIcon защищенное свойство

protected string $defaultIcon
Результат string

$extConf защищенное свойство

protected array $extConf
Результат array

$manager защищенное свойство

protected CacheManager,TYPO3\CMS\Core\Cache $manager
Результат TYPO3\CMS\Core\Cache\CacheManager

$pageRepository защищенное свойство

protected PageRepository,TYPO3\CMS\Frontend\Page $pageRepository
Результат TYPO3\CMS\Frontend\Page\PageRepository

$pageUidBackup защищенное свойство

Storage for the current page UID to restore after this Service abuses ConfigurationManager to override the page UID used when resolving configurations for all TypoScript templates defined in the site.
protected int $pageUidBackup
Результат integer

$recordService защищенное свойство

protected WorkspacesAwareRecordService,FluidTYPO3\Flux\Service $recordService
Результат FluidTYPO3\Flux\Service\WorkspacesAwareRecordService