Skip to content
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

Add export hooks for each data field within Base\Resource #27

Open
sandio opened this issue Jan 12, 2015 · 3 comments
Open

Add export hooks for each data field within Base\Resource #27

sandio opened this issue Jan 12, 2015 · 3 comments
Assignees
Milestone

Comments

@sandio
Copy link
Contributor

sandio commented Jan 12, 2015

No description provided.

@pnikolov
Copy link
Member

Any ideas how to implement this?

@pnikolov
Copy link
Member

What about magic __call() for example

function export_created_on() {}
function export_updated_on() {}
function export_name() {}
...

@kalins ?

@pnikolov
Copy link
Member

pnikolov commented Aug 4, 2016

I've found a better solution.
What about adding HTML support to the generated export and run the list view for each entity attribute? This will reuse all the code used for the listing in the data tables.
This approach will be useful for the PDF export, but for the CSV, maybe we should keep the raw DB data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants