PHP Class FluidTYPO3\Fluidpages\Provider\PageProvider

Main Provider - triggers only on records which have a selected action. All other page records will be associated with the SubPageProvider instead.
Inheritance: extends FluidTYPO3\Flux\Provider\AbstractProvider, implements FluidTYPO3\Flux\Provider\ProviderInterface
Datei anzeigen Open project: fluidtypo3/fluidpages Class Usage Examples

Protected Properties

Property Type Description
$configurationSectionName string
$extensionKey string
$fieldName string
$flexformTool TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools
$pageConfigurationService FluidTYPO3\Fluidpages\Service\ConfigurationService
$pageService FluidTYPO3\Fluidpages\Service\PageService
$parentFieldName string
$tableName string

Public Methods

Method Description
__construct ( ) CONSTRUCTOR
getControllerActionFromRecord ( array $row ) : string
getControllerActionReferenceFromRecord ( array $row ) : string
getControllerExtensionKeyFromRecord ( array $row ) : string
getExtensionKey ( array $row ) : string
getFlexFormValues ( array $row ) : array
getFlexFormValuesSingle ( array $row ) : array
getForm ( array $row ) : Form | null
getTemplatePathAndFilename ( array $row ) : string
injectPageConfigurationService ( ConfigurationService $pageConfigurationService ) : void
injectPageService ( PageService $pageService ) : void
overlayFlexFormValues ( array $row, array $configuration, $form )
postProcessRecord ( string $operation, integer $id, array &$row, TYPO3\CMS\Core\DataHandling\DataHandler $reference, array $removals = [] )
trigger ( array $row, string $table, string $field, string | null $extensionKey = null ) : boolean Returns TRUE that this Provider should trigger if:

Protected Methods

Method Description
getInheritanceTree ( array $row ) : array Gets an inheritance tree (ordered parent -> .
getInheritedConfiguration ( array $row ) : array
getInheritedPropertyValueByDottedPath ( array $inheritedConfiguration, string $propertyPath ) : mixed
getParentFieldValue ( array $row ) : mixed
loadRecordTreeFromDatabase ( array $record ) : array
setDefaultValuesInFieldsWithInheritedValues ( Form $form, array $row ) : Form
unsetInheritedValues ( FluidTYPO3\Flux\Form\FormInterface $field, array $values ) : array

Method Details

__construct() public method

CONSTRUCTOR
public __construct ( )

getControllerActionFromRecord() public method

public getControllerActionFromRecord ( array $row ) : string
$row array
return string

getControllerActionReferenceFromRecord() public method

getControllerExtensionKeyFromRecord() public method

getExtensionKey() public method

public getExtensionKey ( array $row ) : string
$row array
return string

getFlexFormValues() public method

public getFlexFormValues ( array $row ) : array
$row array
return array

getFlexFormValuesSingle() public method

public getFlexFormValuesSingle ( array $row ) : array
$row array
return array

getForm() public method

public getForm ( array $row ) : Form | null
$row array
return FluidTYPO3\Flux\Form | null

getInheritanceTree() protected method

.. -> this record) of record arrays containing raw values.
protected getInheritanceTree ( array $row ) : array
$row array
return array

getInheritedConfiguration() protected method

protected getInheritedConfiguration ( array $row ) : array
$row array
return array

getInheritedPropertyValueByDottedPath() protected method

protected getInheritedPropertyValueByDottedPath ( array $inheritedConfiguration, string $propertyPath ) : mixed
$inheritedConfiguration array
$propertyPath string
return mixed

getParentFieldValue() protected method

protected getParentFieldValue ( array $row ) : mixed
$row array
return mixed

getTemplatePathAndFilename() public method

public getTemplatePathAndFilename ( array $row ) : string
$row array
return string

injectPageConfigurationService() public method

public injectPageConfigurationService ( ConfigurationService $pageConfigurationService ) : void
$pageConfigurationService FluidTYPO3\Fluidpages\Service\ConfigurationService
return void

injectPageService() public method

public injectPageService ( PageService $pageService ) : void
$pageService FluidTYPO3\Fluidpages\Service\PageService
return void

loadRecordTreeFromDatabase() protected method

protected loadRecordTreeFromDatabase ( array $record ) : array
$record array
return array

overlayFlexFormValues() public method

public overlayFlexFormValues ( array $row, array $configuration, $form )
$row array source record row
$configuration array to be overlayed

postProcessRecord() public method

public postProcessRecord ( string $operation, integer $id, array &$row, TYPO3\CMS\Core\DataHandling\DataHandler $reference, array $removals = [] )
$operation string
$id integer
$row array
$reference TYPO3\CMS\Core\DataHandling\DataHandler
$removals array Additional array of field names to remove from the stored Flux value

setDefaultValuesInFieldsWithInheritedValues() protected method

protected setDefaultValuesInFieldsWithInheritedValues ( Form $form, array $row ) : Form
$form FluidTYPO3\Flux\Form
$row array
return FluidTYPO3\Flux\Form

trigger() public method

- table matches 'pages' - field is NULL or matches self::FIELD_NAME - a selection was made in the "template for this page" field
public trigger ( array $row, string $table, string $field, string | null $extensionKey = null ) : boolean
$row array
$table string
$field string
$extensionKey string | null
return boolean

unsetInheritedValues() protected method

protected unsetInheritedValues ( FluidTYPO3\Flux\Form\FormInterface $field, array $values ) : array
$field FluidTYPO3\Flux\Form\FormInterface
$values array
return array

Property Details

$configurationSectionName protected_oe property

protected string $configurationSectionName
return string

$extensionKey protected_oe property

protected string $extensionKey
return string

$fieldName protected_oe property

protected string $fieldName
return string

$flexformTool protected_oe property

protected FlexFormTools,TYPO3\CMS\Core\Configuration\FlexForm $flexformTool
return TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools

$pageConfigurationService protected_oe property

protected ConfigurationService,FluidTYPO3\Fluidpages\Service $pageConfigurationService
return FluidTYPO3\Fluidpages\Service\ConfigurationService

$pageService protected_oe property

protected PageService,FluidTYPO3\Fluidpages\Service $pageService
return FluidTYPO3\Fluidpages\Service\PageService

$parentFieldName protected_oe property

protected string $parentFieldName
return string

$tableName protected_oe property

protected string $tableName
return string