https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11983

--- Comment #8 from Martin Renvoize <martin.renvo...@ptfs-europe.com> ---
So the core proposal here is that we stop adding `->search_for_functionality_x`
methods to the DB level Koha::Objects and rather add generalized filters for
complex joins etc if we need to.

If we really want to add a `for_functionality_x` method/routine to centralize
code for say patron manipulations (where we may have a UI and Script driven
element) we should break that out into a subclass of some kind that contains
the functions/methods for just that area of functionality. 
Koha::Patron::BulkActions perhaps as an example.. containing
`->bulk_selection(filter_a, filter_b)` which internally just calls either a
large constructed query (like the code in option 1) or a chained set of queries
(from option 2) and then various available `->bulk_actions` that may be applied
to the selected set. `->bulk_delete`, `bulk_anonymise`, `bulk_modify` for
example?

Thoughts?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to