PHP 클래스 FluidTYPO3\Flux\Service\FluxService

Main API Service for interacting with Flux-based FlexForms
상속: implements TYPO3\CMS\Core\SingletonInterface
파일 보기 프로젝트 열기: fluidtypo3/flux 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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