PHP Class FluidTYPO3\Fluidcontent\Service\ConfigurationService

Provides methods to read various configuration related to Fluid Content Elements.
Author: Claus Due
Inheritance: extends FluidTYPO3\Flux\Service\FluxService, implements TYPO3\CMS\Core\SingletonInterface
Afficher le fichier Open project: fluidtypo3/fluidcontent Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

Constructor
public __construct ( )

backupPageUidForConfigurationManager() protected méthode

protected backupPageUidForConfigurationManager ( ) : void
Résultat void

buildAllWizardTabGroups() protected méthode

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

buildAllWizardTabsPageTsConfig() protected méthode

Builds a big piece of pageTSconfig setup, defining every detected content element's wizard tabs and items.
protected buildAllWizardTabsPageTsConfig ( array $wizardTabs ) : string
$wizardTabs array
Résultat string

buildWizardTabItem() protected méthode

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

getAllRootTypoScriptTemplates() protected méthode

protected getAllRootTypoScriptTemplates ( ) : array
Résultat array

getContentConfiguration() public méthode

Get definitions of paths for FCEs defined in TypoScript
public getContentConfiguration ( string $extensionName = NULL ) : array
$extensionName string
Résultat array

getContentElementFormInstances() public méthode

public getContentElementFormInstances ( ) : Form[][]
Résultat FluidTYPO3\Flux\Form[][]

getContentTypeSelectorItems() public méthode

public getContentTypeSelectorItems ( ) : array
Résultat array

getDefaultIcon() public méthode

public getDefaultIcon ( ) : string
Résultat string

getPageTsConfig() public méthode

public getPageTsConfig ( ) : string
Résultat string

getTypoScriptTemplatesInRootline() protected méthode

protected getTypoScriptTemplatesInRootline ( ) : array
Résultat array

injectCacheManager() public méthode

public injectCacheManager ( TYPO3\CMS\Core\Cache\CacheManager $manager ) : void
$manager TYPO3\CMS\Core\Cache\CacheManager
Résultat void

injectPageRepository() public méthode

public injectPageRepository ( TYPO3\CMS\Frontend\Page\PageRepository $pageRepository ) : void
$pageRepository TYPO3\CMS\Frontend\Page\PageRepository
Résultat void

injectRecordService() public méthode

public injectRecordService ( FluidTYPO3\Flux\Service\WorkspacesAwareRecordService $recordService ) : void
$recordService FluidTYPO3\Flux\Service\WorkspacesAwareRecordService
Résultat void

isBackendMode() protected méthode

protected isBackendMode ( ) : boolean
Résultat boolean

overrideCurrentPageUidForConfigurationManager() protected méthode

protected overrideCurrentPageUidForConfigurationManager ( integer $newPageUid ) : void
$newPageUid integer
Résultat void

renderPageTypoScriptForPageUid() protected méthode

protected renderPageTypoScriptForPageUid ( $pageUid ) : string
$pageUid
Résultat string

restorePageUidForConfigurationManager() protected méthode

protected restorePageUidForConfigurationManager ( ) : void
Résultat void

sanitizeString() protected méthode

protected sanitizeString ( string $string ) : string
$string string
Résultat string

sendDisabledContentWarning() protected méthode

protected sendDisabledContentWarning ( string $templatePathAndFilename ) : void
$templatePathAndFilename string
Résultat void

writeCachedConfigurationIfMissing() public méthode

Property Details

$defaultIcon protected_oe property

protected string $defaultIcon
Résultat string

$extConf protected_oe property

protected array $extConf
Résultat array

$manager protected_oe property

protected CacheManager,TYPO3\CMS\Core\Cache $manager
Résultat TYPO3\CMS\Core\Cache\CacheManager

$pageRepository protected_oe property

protected PageRepository,TYPO3\CMS\Frontend\Page $pageRepository
Résultat TYPO3\CMS\Frontend\Page\PageRepository

$pageUidBackup protected_oe property

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

$recordService protected_oe property

protected WorkspacesAwareRecordService,FluidTYPO3\Flux\Service $recordService
Résultat FluidTYPO3\Flux\Service\WorkspacesAwareRecordService