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

Batch operations #84

Closed
jmfayard opened this issue Apr 5, 2017 · 2 comments
Closed

Batch operations #84

jmfayard opened this issue Apr 5, 2017 · 2 comments

Comments

@jmfayard
Copy link
Contributor

jmfayard commented Apr 5, 2017

Hello, in my company I implemented an ad-hoc "Batch operations" feature, and I'm thinking about backporting it to crudlex

In my case we wanted to delete all selected entries, but that could be extended for example to have a CSV export

image

What could be a good api for this?

first draft in pseudo-code

$app['crud']->addBatchOperation(new MyCrudlexBatchOperation())
class MyCrudlexBatchOperation extends BatchOperation
   fun support(EntityDefinition definition) => true or false
   fun label => "CSV Export"
   fun handle(EntityDefinition definition, List<Entity> entities) ---> do the csv export
@germain-italic
Copy link

@jmfayard batch select and export look awesome! Hope you can backport this to crudlex!

@philiplb
Copy link
Owner

philiplb commented Jun 1, 2017

Closed in favor of #70

@philiplb philiplb closed this as completed Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants