PHP Класс FluidTYPO3\Flux\Service\FluxService

Main API Service for interacting with Flux-based FlexForms
Наследование: implements TYPO3\CMS\Core\SingletonInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$cache array
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
$contentObjectData array
$friendlySeverities array
$objectManager TYPO3\CMS\Extbase\Object\ObjectManagerInterface
$providerResolver FluidTYPO3\Flux\Provider\ProviderResolver
$raw string
$reflectionService TYPO3\CMS\Extbase\Reflection\ReflectionService
$sentDebugMessages array
$typoScript array

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

Метод Описание
convertFlexFormContentToArray ( string $flexFormContent, Form $form = NULL, string $languagePointer = 'lDEF', string $valuePointer = 'vDEF' ) : array Parses the flexForm content and converts it to an array The resulting array will be multi-dimensional, as a value "bla.blubb" results in two levels, and a value "bla.blubb.bla" results in three levels.
debug ( mixed $instance, boolean $plainText = TRUE, integer $depth = 2 ) : void
flushCache ( ) : void
getAllTypoScript ( ) : array Returns the complete, global TypoScript array defined in TYPO3.
getBackendViewConfigurationForExtensionName ( string $extensionName ) : array | null Returns the module.tx_extsignature.view array.
getFormFromTemplateFile ( FluidTYPO3\Flux\View\ViewContext $viewContext, string $formName = 'form' ) : Form | null
getGridFromTemplateFile ( FluidTYPO3\Flux\View\ViewContext $viewContext, string $gridName = 'grid' ) : FluidTYPO3\Flux\Form\Container\Grid | null Reads a Grid constructed using flux:grid, returning an array of defined rows and columns along with any content areas.
getPreparedExposedTemplateView ( FluidTYPO3\Flux\View\ViewContext $viewContext ) : ExposedTemplateView
getResolver ( ) : FluidTYPO3\Flux\Helper\Resolver
getSettingsForExtensionName ( string $extensionName ) : array Returns the plugin.tx_extsignature.settings array.
getTypoScriptByPath ( string $path ) : array Gets the value/array from global TypoScript by dotted path expression.
getViewConfigurationForExtensionName ( string $extensionName ) : array | null Returns the plugin.tx_extsignature.view array, or a default set of paths if that array is not defined in TypoScript.
injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
injectObjectManager ( TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager ) : void
injectProviderResolver ( FluidTYPO3\Flux\Provider\ProviderResolver $providerResolver ) : void
injectReflectionService ( TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService ) : void
message ( string $message, integer $severity = GeneralUtility::SYSLOG_SEVERITY_INFO, string $title = 'Flux Debug' ) : void
resolveConfigurationProviders ( string $table, string $fieldName, array $row = NULL, string $extensionKey = NULL ) : FluidTYPO3\Flux\Provider\ProviderInterface[] Resolves a ConfigurationProvider which can provide a working FlexForm configuration based on the given parameters.
resolvePrimaryConfigurationProvider ( string $table, string $fieldName, array $row = NULL, string $extensionKey = NULL ) : FluidTYPO3\Flux\Provider\ProviderInterface | null ResolveUtility the top-priority ConfigurationPrivider which can provide a working FlexForm configuration baed on the given parameters.
sortObjectsByProperty ( array $objects, string $sortBy, string $sortDirection = 'ASC' ) : array

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

Метод Описание
getDefaultViewConfigurationForExtensionKey ( string $extensionKey ) : array Gets an array with the default view configuration for the provided extension key. Maybe overwritten by a sub-service class adding additional subfolders used by default.
logMessage ( string $message, integer $severity ) : void

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

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

Note: multi-language flexForms are not supported yet
public convertFlexFormContentToArray ( string $flexFormContent, Form $form = NULL, string $languagePointer = 'lDEF', string $valuePointer = 'vDEF' ) : array
$flexFormContent string flexForm xml string
$form FluidTYPO3\Flux\Form An instance of \FluidTYPO3\Flux\Form. If transformation instructions are contained in this configuration they are applied after conversion to array
$languagePointer string language pointer used in the flexForm
$valuePointer string value pointer used in the flexForm
Результат array the processed array

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

public debug ( mixed $instance, boolean $plainText = TRUE, integer $depth = 2 ) : void
$instance mixed
$plainText boolean
$depth integer
Результат void

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

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

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

Returns the complete, global TypoScript array defined in TYPO3.
public getAllTypoScript ( ) : array
Результат array

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

Accepts any input extension name type.
public getBackendViewConfigurationForExtensionName ( string $extensionName ) : array | null
$extensionName string
Результат array | null

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

(e.g. EXT:fluidpages can provide "Resources/Private/Templates/Page" as default templateRootPath)
protected getDefaultViewConfigurationForExtensionKey ( string $extensionKey ) : array
$extensionKey string
Результат array

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

public getFormFromTemplateFile ( FluidTYPO3\Flux\View\ViewContext $viewContext, string $formName = 'form' ) : Form | null
$viewContext FluidTYPO3\Flux\View\ViewContext
$formName string
Результат FluidTYPO3\Flux\Form | null

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

Note about specific implementations: * EXT:fluidpages uses the Grid to render a BackendLayout on TYPO3 6.0 and above * EXT:flux uses the Grid to render content areas inside content elements registered with Flux But your custom extension is of course allowed to use the Grid for any purpose. You can even read the Grid from - for example - the currently selected page template to know exactly how the BackendLayout looks.
public getGridFromTemplateFile ( FluidTYPO3\Flux\View\ViewContext $viewContext, string $gridName = 'grid' ) : FluidTYPO3\Flux\Form\Container\Grid | null
$viewContext FluidTYPO3\Flux\View\ViewContext
$gridName string
Результат FluidTYPO3\Flux\Form\Container\Grid | null

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

public getPreparedExposedTemplateView ( FluidTYPO3\Flux\View\ViewContext $viewContext ) : ExposedTemplateView
$viewContext FluidTYPO3\Flux\View\ViewContext
Результат FluidTYPO3\Flux\View\ExposedTemplateView

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

public getResolver ( ) : FluidTYPO3\Flux\Helper\Resolver
Результат FluidTYPO3\Flux\Helper\Resolver

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

Accepts any input extension name type.
public getSettingsForExtensionName ( string $extensionName ) : array
$extensionName string
Результат array

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

Gets the value/array from global TypoScript by dotted path expression.
public getTypoScriptByPath ( string $path ) : array
$path string
Результат array

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

Returns the plugin.tx_extsignature.view array, or a default set of paths if that array is not defined in TypoScript.
public getViewConfigurationForExtensionName ( string $extensionName ) : array | null
$extensionName string
Результат array | null

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

public injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
Результат void

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

public injectObjectManager ( TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager ) : void
$objectManager TYPO3\CMS\Extbase\Object\ObjectManagerInterface
Результат void

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

public injectProviderResolver ( FluidTYPO3\Flux\Provider\ProviderResolver $providerResolver ) : void
$providerResolver FluidTYPO3\Flux\Provider\ProviderResolver
Результат void

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

public injectReflectionService ( TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService ) : void
$reflectionService TYPO3\CMS\Extbase\Reflection\ReflectionService
Результат void

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

protected logMessage ( string $message, integer $severity ) : void
$message string
$severity integer
Результат void

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

public message ( string $message, integer $severity = GeneralUtility::SYSLOG_SEVERITY_INFO, string $title = 'Flux Debug' ) : void
$message string
$severity integer
$title string
Результат void

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

Resolves a ConfigurationProvider which can provide a working FlexForm configuration based on the given parameters.
public resolveConfigurationProviders ( string $table, string $fieldName, array $row = NULL, string $extensionKey = NULL ) : FluidTYPO3\Flux\Provider\ProviderInterface[]
$table string
$fieldName string
$row array
$extensionKey string
Результат FluidTYPO3\Flux\Provider\ProviderInterface[]

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

ResolveUtility the top-priority ConfigurationPrivider which can provide a working FlexForm configuration baed on the given parameters.
public resolvePrimaryConfigurationProvider ( string $table, string $fieldName, array $row = NULL, string $extensionKey = NULL ) : FluidTYPO3\Flux\Provider\ProviderInterface | null
$table string
$fieldName string
$row array
$extensionKey string
Результат FluidTYPO3\Flux\Provider\ProviderInterface | null

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

public sortObjectsByProperty ( array $objects, string $sortBy, string $sortDirection = 'ASC' ) : array
$objects array
$sortBy string
$sortDirection string
Результат array

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

$cache защищенное статическое свойство

protected static array $cache
Результат array

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

protected ConfigurationManagerInterface,TYPO3\CMS\Extbase\Configuration $configurationManager
Результат TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface

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

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

$friendlySeverities защищенное статическое свойство

protected static array $friendlySeverities
Результат array

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

protected ObjectManagerInterface,TYPO3\CMS\Extbase\Object $objectManager
Результат TYPO3\CMS\Extbase\Object\ObjectManagerInterface

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

protected ProviderResolver,FluidTYPO3\Flux\Provider $providerResolver
Результат FluidTYPO3\Flux\Provider\ProviderResolver

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

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

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

protected ReflectionService,TYPO3\CMS\Extbase\Reflection $reflectionService
Результат TYPO3\CMS\Extbase\Reflection\ReflectionService

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

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

$typoScript защищенное статическое свойство

protected static array $typoScript
Результат array