DS filter - constants for field IDs would improve readability
This is an open discussion with 1 reply, filed under General.
Search
I think you’ll find that in 2.1 data-sources use the field names as they are not stored in the database anymore :)
Create an account or sign in to comment.
I’m just looking at the php class for a DataSource and it occurs to me that having PHP constants for each field ID to use in place of the IDs themselves would make the $dsParamFILTERS member more readable.
This is, of course, only really relevant for developers who write/tweak their own DS code, but it’d still be a big readability improvement. Perhaps the code that generates the DS from the symphony interface could create these constants at the top of the class and reference them in the filter.
Any thoughts from the dev team?