-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Structured Table Type #353
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx very much. We would need some tweaks here and there though.
*/ | ||
public function evaluateReturnType(string $inputType, int $index = null): string | ||
{ | ||
return TransformationDataTypeService::DEFAULT_ARRAY; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we would need to introduce there an extra type which just allows assignment to structured table fields, like we have it for quantity value, gallery etc.
'languages' | ||
'languages', | ||
'table', | ||
'structuredTable' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be moved to an extra type...
if (empty($inputData)) { | ||
return ""; | ||
} | ||
return (new StructuredTable($inputData))->getHtmlTable( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why return a html table here?
Shouldn't be that in generateResultPreview
, as for example here
'key' => $value, | ||
'label' => $label, | ||
]; | ||
}, array_keys($inputData), array_keys(array_values($inputData)[0])), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$inputData
might be empty/null ... will result in errors at this place.
@mybabysexy 🏓 did you already have a chance to take a look at my comments? |
@mybabysexy 🏓 any chance we could continue the discussion here? |
hi, sorry I'm no longer working with Pimcore or PHP so I don't think that I can continue with this PR |
thx for the information. |
closing due to inactivity |
Implement #101