Search

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?

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details