[Ref] improve readability of acl code
authoreileen <emcnaughton@wikimedia.org>
Sat, 21 Dec 2019 19:25:18 +0000 (08:25 +1300)
committereileen <emcnaughton@wikimedia.org>
Sat, 21 Dec 2019 19:25:18 +0000 (08:25 +1300)
commit20095057c956253b9b6c5c450942cdccec72b809
tree2de20e7eb17253de740df21c17f49e91ba4d3426
parent28506a4176ef580ec363eb42a4923c52e333a88f
[Ref] improve readability of acl code

Variables are used in this code for table names, making the queries hard to read.

Since there is quite a bit I've only tackled 2 patterns
1) using  where an alias within mysql would do
2) using  where an alias withing mysql would do

Ideally we want to switch to using CRM_Core_DAO::executeQuery & ditch the variables forr
table names altogether but since there is a lot I've stuck to one pattern for this change
CRM/ACL/BAO/ACL.php