-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Entry Point for Admin and Extensions to change Exported Data #1711
Comments
You can implement your own DataSource, similar to https://github.com/sonata-project/SonataDoctrineORMAdminBundle/blob/4.x/src/Exporter/DataSource.php#L21 which return the custom Iterator you want based on https://github.com/sonata-project/exporter/blob/3.x/src/Source/AbstractPropertySourceIterator.php with the override needed for the method What could be done would be to change
in SonataDoctrineORMAdminBundle to
in order to introduce a new extension point. I move this to SonataDoctrineORMAdminBundle |
Interesting point out to the SourceIterator ... i especially find the DateTimeFormat interesting that maybe could be extended with DateTimeTimezone |
Hm one thing that confuses me is why DoctrineORMQuerySourceIterator is part of the exporter module and not part of the SonataDoctrineORMAdminBundle 🤷 |
Because like any other sourceIterator (https://github.com/sonata-project/exporter/tree/1877816a03b96cadf1be03d1857d9ef11088778a/src/Source), it can be used without sonataAdmin |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Feature Request
view_timezone
so the Form used in the filter shows the intl time while still using the php time for the query (would be nice to better automate that, but that's a problem for later)so it would be nice to have a way to alter the data between getting it from the query and exporting it into the Exporter for csv or xml data
The text was updated successfully, but these errors were encountered: