You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since traversing the XML structure for a single column requires XML operations e.g. for finding nodes and checking values, we should make the implicit structural knowledge explicit by creating a wrapper class for the structure. This would serve the same purpose as the current trait \a9f\Typo3Fractor\Helper\FlexFormHelperTrait.
The new class should accept a DOMNode for either the whole column configuration or the <config> sub node (the latter would make it easier to check if the correct column was passed in the constructor).
The class should have methods for retrieving the config type, render type, changing the TCA type, render type, …
Alternatively, we could also decide on not handling all this in XML, but converting the XML to a PHP array in the constructor and back to XML in a separate method (which is how the core handles this as well).
The text was updated successfully, but these errors were encountered:
I would love the xml to PHP transformation as it would make the rules so much easier as you could basically copy the tca migrations from the core then.
Since traversing the XML structure for a single column requires XML operations e.g. for finding nodes and checking values, we should make the implicit structural knowledge explicit by creating a wrapper class for the structure. This would serve the same purpose as the current trait
\a9f\Typo3Fractor\Helper\FlexFormHelperTrait
.The new class should accept a DOMNode for either the whole column configuration or the
<config>
sub node (the latter would make it easier to check if the correct column was passed in the constructor).The class should have methods for retrieving the config type, render type, changing the TCA type, render type, …
Alternatively, we could also decide on not handling all this in XML, but converting the XML to a PHP array in the constructor and back to XML in a separate method (which is how the core handles this as well).
The text was updated successfully, but these errors were encountered: