![]() |
TYPO3
7.6
|
Public Member Functions | |
setFormBuilder (FormBuilder $formBuilder) | |
setGlobalLayoutConfiguration ($layout=array()) | |
getGlobalLayoutByElementType ($elementType) | |
setElementLayouts (Element $element, array $userConfiguredElementTyposcript=array()) | |
getNewAttributeName ($elementType, $attributeName) | |
Protected Member Functions | |
replaceLabelContent ($scope= '', array $messages) | |
getDescriptionElementLayouts (Element $element, $scope= 'label') | |
getElementClassFromLayout ($elementType= '', $tagName= '') | |
determineElementOuterWraps ($elementType, $elementLayout= '') | |
replaceTagWithMarker ($tagName, $stopTag= 'body', $html= '') | |
Protected Attributes | |
$layout = array() | |
$formBuilder | |
$registeredFormElements | |
$elementsWithoutLabel | |
$containerElements | |
Compatibility layer. Used in the scope of one(!) specific form element.
Definition at line 25 of file CompatibilityLayerUtility.php.
|
protected |
Try to explode the element layout into 2 parts to get the outer wrapping
string | $elementType | |
string | $elementLayout |
Definition at line 607 of file CompatibilityLayerUtility.php.
References elseif, and CompatibilityLayerUtility\replaceTagWithMarker().
Referenced by CompatibilityLayerUtility\setElementLayouts().
|
protected |
Replace <labelvalue> or <legendvalue>, <mandatory> and <error> in a label / legend with the associated content. Return the replaced <label> / <legend> layout and the replaced <mandatory> and <error> layout.
\TYPO3\CMS\Form\Domain\Model\Element | $element | |
string | $scope |
Definition at line 517 of file CompatibilityLayerUtility.php.
References Element\getAdditionalArgument(), CompatibilityLayerUtility\getGlobalLayoutByElementType(), Element\getName(), Element\getValidationErrorMessages(), CompatibilityLayerUtility\replaceLabelContent(), and CompatibilityLayerUtility\replaceTagWithMarker().
Referenced by CompatibilityLayerUtility\setElementLayouts().
|
protected |
Return the class attribute for a element defined by layout.
string | $elementType | |
string | $tagName |
Definition at line 575 of file CompatibilityLayerUtility.php.
Referenced by CompatibilityLayerUtility\setElementLayouts().
getGlobalLayoutByElementType | ( | $elementType | ) |
Get the layout of the object Looks if there is an assigned layout by configuration of the element otherwise it will look if there is a layout set in the form configuration.
string | $elementType | Type of element e.g BUTTON |
Definition at line 130 of file CompatibilityLayerUtility.php.
References CompatibilityLayerUtility\$layout, GeneralUtility\deprecationLog(), and elseif.
Referenced by CompatibilityLayerUtility\getDescriptionElementLayouts(), CompatibilityLayerUtility\replaceLabelContent(), and CompatibilityLayerUtility\setElementLayouts().
getNewAttributeName | ( | $elementType, | |
$attributeName | |||
) |
Get new name for some old inconsistent attribute names
string | $elementType | |
string | $attributeName |
Definition at line 719 of file CompatibilityLayerUtility.php.
References GeneralUtility\deprecationLog(), and elseif.
|
protected |
Replace the message sections of a label. The scopes can be mandatory or error.
string | $scope | |
array | $messages |
Definition at line 499 of file CompatibilityLayerUtility.php.
References CompatibilityLayerUtility\getGlobalLayoutByElementType(), and CompatibilityLayerUtility\replaceTagWithMarker().
Referenced by CompatibilityLayerUtility\getDescriptionElementLayouts().
|
protected |
Replace a html tag with a unique marker
string | $tagName | |
string | $stopTag | |
string | $html |
Definition at line 647 of file CompatibilityLayerUtility.php.
Referenced by CompatibilityLayerUtility\determineElementOuterWraps(), CompatibilityLayerUtility\getDescriptionElementLayouts(), CompatibilityLayerUtility\replaceLabelContent(), and CompatibilityLayerUtility\setElementLayouts().
setElementLayouts | ( | Element | $element, |
array | $userConfiguredElementTyposcript = array() |
||
) |
Set the layout for a element Not supported / ignored: OPTGROUP, OPTION, layout.legend
\TYPO3\CMS\Form\Domain\Model\Element | $element | |
array | $userConfiguredElementTyposcript | The configuration array |
Definition at line 270 of file CompatibilityLayerUtility.php.
References CompatibilityLayerUtility\$containerElements, CompatibilityLayerUtility\$elementsWithoutLabel, CompatibilityLayerUtility\$layout, CompatibilityLayerUtility\$registeredFormElements, GeneralUtility\deprecationLog(), CompatibilityLayerUtility\determineElementOuterWraps(), elseif, Element\getAdditionalArgument(), CompatibilityLayerUtility\getDescriptionElementLayouts(), CompatibilityLayerUtility\getElementClassFromLayout(), Element\getElementCounter(), Element\getElementType(), Element\getElementTypeLowerCase(), CompatibilityLayerUtility\getGlobalLayoutByElementType(), Element\getHtmlAttribute(), Element\getId(), Element\getLayout(), CompatibilityLayerUtility\replaceTagWithMarker(), Element\setAdditionalArgument(), Element\setHtmlAttribute(), and Element\setLayout().
setFormBuilder | ( | FormBuilder | $formBuilder | ) |
FormBuilder | $formBuilder |
Definition at line 98 of file CompatibilityLayerUtility.php.
References CompatibilityLayerUtility\$formBuilder.
setGlobalLayoutConfiguration | ( | $layout = array() | ) |
Set the layout configuration for one or more elements
NULL | array | $layout | The configuration array |
Definition at line 110 of file CompatibilityLayerUtility.php.
References CompatibilityLayerUtility\$layout, and GeneralUtility\deprecationLog().
|
protected |
Definition at line 89 of file CompatibilityLayerUtility.php.
Referenced by CompatibilityLayerUtility\setElementLayouts().
|
protected |
Definition at line 77 of file CompatibilityLayerUtility.php.
Referenced by CompatibilityLayerUtility\setElementLayouts().
|
protected |
Definition at line 49 of file CompatibilityLayerUtility.php.
Referenced by CompatibilityLayerUtility\setFormBuilder().
|
protected |
Definition at line 44 of file CompatibilityLayerUtility.php.
Referenced by CompatibilityLayerUtility\getGlobalLayoutByElementType(), CompatibilityLayerUtility\setElementLayouts(), and CompatibilityLayerUtility\setGlobalLayoutConfiguration().
|
protected |
Definition at line 54 of file CompatibilityLayerUtility.php.
Referenced by CompatibilityLayerUtility\setElementLayouts().